aggregator-feed.html.twig in Drupal 9
Same filename in this branch
- 9 core/modules/aggregator/templates/aggregator-feed.html.twig
- 9 core/themes/starterkit_theme/templates/dataset/aggregator-feed.html.twig
- 9 core/themes/classy/templates/dataset/aggregator-feed.html.twig
- 9 core/themes/stable9/templates/dataset/aggregator-feed.html.twig
- 9 core/themes/stable/templates/dataset/aggregator-feed.html.twig
- 9 core/themes/claro/templates/classy/dataset/aggregator-feed.html.twig
- 9 core/themes/seven/templates/classy/dataset/aggregator-feed.html.twig
- 9 core/themes/bartik/templates/classy/dataset/aggregator-feed.html.twig
- 9 core/profiles/demo_umami/themes/umami/templates/classy/dataset/aggregator-feed.html.twig
Same filename and directory in other branches
Default theme implementation to present an aggregator feed.
The contents are rendered above feed listings when browsing source feeds. For example, "example.com/aggregator/sources/1".
Available variables:
- title: (optional) Title of the feed item.
- content: All field items. Use {{ content }} to print them all, or print a subset such as {{ content.field_example }}. Use {{ content|without('field_example') }} to temporarily suppress the printing of a given element.
- title_attributes: Same as attributes, except applied to the main title tag that appears in the template.
- title_prefix: Additional output populated by modules, intended to be displayed in front of the main title tag that appears in the template.
- title_suffix: Additional output populated by modules, intended to be displayed after the main title tag that appears in the template.
See also
File
core/modules/aggregator/templates/aggregator-feed.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to present an aggregator feed.
- *
- * The contents are rendered above feed listings when browsing source feeds.
- * For example, "example.com/aggregator/sources/1".
- *
- * Available variables:
- * - title: (optional) Title of the feed item.
- * - content: All field items. Use {{ content }} to print them all,
- * or print a subset such as {{ content.field_example }}. Use
- * {{ content|without('field_example') }} to temporarily suppress the printing
- * of a given element.
- * - title_attributes: Same as attributes, except applied to the main title
- * tag that appears in the template.
- * - title_prefix: Additional output populated by modules, intended to be
- * displayed in front of the main title tag that appears in the template.
- * - title_suffix: Additional output populated by modules, intended to be
- * displayed after the main title tag that appears in the template.
- *
- * @see template_preprocess_aggregator_feed()
- *
- * @ingroup themeable
- */
- #}
- {{ title_prefix }}
- {% if title and not full %}
- <h2{{ title_attributes }}>{{ title }}</h2>
- {% endif %}
- {{ title_suffix }}
-
- {{ content }}