annotate core/modules/taxonomy/templates/taxonomy-term.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Default theme implementation to display a taxonomy term.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - url: URL of the current term.
Chris@0 8 * - name: Name of the current term.
Chris@0 9 * - content: Items for the content of the term (fields and description).
Chris@0 10 * Use 'content' to print them all, or print a subset such as
Chris@0 11 * 'content.description'. Use the following code to exclude the
Chris@0 12 * printing of a given child element:
Chris@0 13 * @code
Chris@0 14 * {{ content|without('description') }}
Chris@0 15 * @endcode
Chris@0 16 * - attributes: HTML attributes for the wrapper.
Chris@0 17 * - page: Flag for the full page state.
Chris@0 18 * - term: The taxonomy term entity, including:
Chris@0 19 * - id: The ID of the taxonomy term.
Chris@0 20 * - bundle: Machine name of the current vocabulary.
Chris@0 21 * - view_mode: View mode, e.g. 'full', 'teaser', etc.
Chris@0 22 *
Chris@0 23 * @see template_preprocess_taxonomy_term()
Chris@0 24 *
Chris@0 25 * @ingroup themeable
Chris@0 26 */
Chris@0 27 #}
Chris@0 28 <div{{ attributes }}>
Chris@0 29 {{ title_prefix }}
Chris@0 30 {% if not page %}
Chris@0 31 <h2><a href="{{ url }}">{{ name }}</a></h2>
Chris@0 32 {% endif %}
Chris@0 33 {{ title_suffix }}
Chris@0 34 {{ content }}
Chris@0 35 </div>