function TaxonomyThemeHooks::theme
Implements hook_theme().
Attributes
#[Hook('theme')]
File
-
core/
modules/ taxonomy/ src/ Hook/ TaxonomyThemeHooks.php, line 21
Class
- TaxonomyThemeHooks
- Hook implementations for taxonomy.
Namespace
Drupal\taxonomy\HookCode
public function theme() : array {
return [
'taxonomy_term' => [
'render element' => 'elements',
'initial preprocess' => static::class . ':preprocessTaxonomyTerm',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.