diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index e326e94..ba82e15 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -526,11 +526,12 @@ function taxonomy_term_view(Term $term, $view_mode = 'full', $langcode = NULL) { * An array in the format expected by drupal_render(). */ function taxonomy_term_view_multiple(array $terms, $view_mode = 'full', $langcode = NULL) { + return entity_view_multiple($terms, $view_mode, $langcode); } /** - * Prepares variables for the taxonomy term template. + * Prepares variables for the taxonomy term templates. * * Default template: taxonomy-term.html.twig. * diff --git a/core/modules/taxonomy/templates/taxonomy-term.html.twig b/core/modules/taxonomy/templates/taxonomy-term.html.twig index 627e2d0..1059793 100644 --- a/core/modules/taxonomy/templates/taxonomy-term.html.twig +++ b/core/modules/taxonomy/templates/taxonomy-term.html.twig @@ -1,10 +1,10 @@ {# /** * @file - * Default theme implementation to display a term. + * Default theme implementation to display a taxonomy term. * * Available variables: - * - url: Direct url of the current term. + * - url: Direct URL of the current term. * - title: Name of the current term. * - title_prefix: Additional output populated by modules, intended to be * displayed in front of the main title tag that appears in the template. @@ -18,18 +18,15 @@ * - title_attributes: HTML attributes for the title element. * - content_attributes: HTML attributes for the title element. * It includes the 'class' information, which includes: - * - taxonomy-term: The current template type, i.e., "theming hook". - * - vocabulary-[vocabulary-name]: The vocabulary to which the term belongs to. - * For example, if the term is a "Tag" it would result in "vocabulary-tag". + * - taxonomy-term: The current template type, i.e., "theming hook". + * - vocabulary-[vocabulary-name]: The vocabulary to which the term belongs to. + * For example, if the term is a "Tag" it would result in "vocabulary-tag". * - page: Flag for the full page state. * - term: Full term object. * - view_mode: View mode, e.g. 'full', 'teaser'... * - zebra: Outputs either "even" or "odd". Useful for zebra striping in * teaser listings. * - id: Position of the term. Increments each time it's output. - * - is_front: Flags true when presented in the front page. - * - logged_in: Flags true when the current user is a logged-in member. - * - is_admin: Flags true when the current user is an administrator. * - user: The currently logged-in user. * * @see template_preprocess()