function taxonomy_theme_suggestions_taxonomy_term
taxonomy_theme_suggestions_taxonomy_term(array $variables)
Implements hook_theme_suggestions_HOOK().
File
- core/modules/taxonomy/taxonomy.module, line 215
- Enables the organization of content into categories.
Code
function taxonomy_theme_suggestions_taxonomy_term(array $variables) { $suggestions = array(); /** @var \Drupal\taxonomy\TermInterface $term */ $term = $variables['elements']['#taxonomy_term']; $suggestions[] = 'taxonomy_term__' . $term->bundle(); $suggestions[] = 'taxonomy_term__' . $term->id(); return $suggestions; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!taxonomy!taxonomy.module/function/taxonomy_theme_suggestions_taxonomy_term/8.1.x