diff --git a/core/modules/taxonomy/templates/taxonomy-term.html.twig b/core/modules/taxonomy/templates/taxonomy-term.html.twig index 7139c66..2e7acad 100644 --- a/core/modules/taxonomy/templates/taxonomy-term.html.twig +++ b/core/modules/taxonomy/templates/taxonomy-term.html.twig @@ -4,19 +4,24 @@ * Default theme implementation to display a taxonomy term. * * Available variables: - * - url: Direct URL of the current term. + * - url: URL of the current term. * - name: Name of the current term. * - content: Items for the content of the term (fields and description). * Use 'content' to print them all, or print a subset such as - * 'content.field_example'. Use {% hide(content.field_example) %} to - * temporarily suppress the printing of a given element. - * - attributes: HTML attributes for the containing element. It includes - * the 'class' information, which includes: - * - taxonomy-term: The current template type, i.e., "theming hook". + * 'content.description'. Use the following code to temporarily suppress the + * printing of a given element: + * @code + * {% hide(content.description) %} + * @endcode + * - attributes: HTML attributes for the wrapper. The 'class' attribute + * contains the following classes by default: + * - taxonomy-term: The current template type, i.e. "theming hook". * - vocabulary-[vocabulary-name]: The vocabulary that this term belongs to. - * For example, if the term is a "Tag" it would result in "vocabulary-tag". + * For example, if the term belongs to a vocabulary called "Tags" then the + * class would be "vocabulary-tags". * - page: Flag for the full page state. - * - term: Full term object. + * - term: The taxonomy term entity, including: + * - id: The ID of the taxonomy term. * - view_mode: View mode, e.g. 'full', 'teaser', etc. * * @see template_preprocess()