sitemap-taxonomy-term.html.twig in Sitemap 8.2
Same filename and directory in other branches
Theme implementation to display a taxonomy term in the sitemap.
Available variables:
- name: The name of the taxonomy term.
- show_link: Whether or not to display the link for the term.
- url: The URL for the taxonomy term.
- show_count: Whether or not to display the number of nodes using the term.
- count: The number of nodes using this taxonomy term.
- show_feed: Whether or not to display the RSS feed link for this term.
- feed: The URL for the taxonomy term's feed, or FALSE if the option to display the feed link is disabled.
- feed_icon: The icon to display for the RSS feed's link.
See also
1 theme call to sitemap-taxonomy-term.html.twig
- Vocabulary::buildSitemapTerm in src/
Plugin/ Sitemap/ Vocabulary.php - Builds a taxonomy term item.
File
templates/sitemap-taxonomy-term.html.twigView source
- {#
- /**
- * @file
- * Theme implementation to display a taxonomy term in the sitemap.
- *
- * Available variables:
- * - name: The name of the taxonomy term.
- * - show_link: Whether or not to display the link for the term.
- * - url: The URL for the taxonomy term.
- * - show_count: Whether or not to display the number of nodes using the term.
- * - count: The number of nodes using this taxonomy term.
- * - show_feed: Whether or not to display the RSS feed link for this term.
- * - feed: The URL for the taxonomy term's feed, or FALSE if the option to
- * display the feed link is disabled.
- * - feed_icon: The icon to display for the RSS feed's link.
- *
- * @see template_preprocess_sitemap_taxonomy_term()
- */
- #}
- {% if url and show_link %}<a href="{{ url }}">{% endif %}{{ name }}{% if url and show_link %}</a>{% endif %} {% if show_count %}<span class="count">({{ count }})</span>{% endif %} {% if show_feed and feed and feed_icon %}<a href="{{ feed }}">{{ feed_icon }}</a>{% endif %}