aggregator-item.html.twig
Same filename in this branch
- 9 core/profiles/demo_umami/themes/umami/templates/classy/content/aggregator-item.html.twig
- 9 core/themes/stable9/templates/content/aggregator-item.html.twig
- 9 core/themes/seven/templates/classy/content/aggregator-item.html.twig
- 9 core/themes/claro/templates/classy/content/aggregator-item.html.twig
- 9 core/themes/bartik/templates/classy/content/aggregator-item.html.twig
- 9 core/themes/stable/templates/content/aggregator-item.html.twig
- 9 core/themes/classy/templates/content/aggregator-item.html.twig
Same filename in other branches
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/content/aggregator-item.html.twig
- 8.9.x core/themes/seven/templates/classy/content/aggregator-item.html.twig
- 8.9.x core/themes/claro/templates/classy/content/aggregator-item.html.twig
- 8.9.x core/themes/bartik/templates/classy/content/aggregator-item.html.twig
- 8.9.x core/themes/stable/templates/content/aggregator-item.html.twig
- 8.9.x core/themes/classy/templates/content/aggregator-item.html.twig
- 8.9.x core/modules/aggregator/templates/aggregator-item.html.twig
Default theme implementation to present a feed item in an aggregator page.
Available variables:
- url: URL to the originating feed item.
- 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.
- attributes: HTML attributes for the wrapper.
- 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
template_preprocess_aggregator_item()
File
-
core/
modules/ aggregator/ templates/ aggregator-item.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation to present a feed item in an aggregator page.
- *
- * Available variables:
- * - url: URL to the originating feed item.
- * - 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.
- * - attributes: HTML attributes for the wrapper.
- * - 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_item()
- *
- * @ingroup themeable
- */
- #}
- <article{{ attributes }}>
- {{ title_prefix }}
- {% if title %}
- <h3>
- <a href="{{ url }}">{{ title }}</a>
- </h3>
- {% endif %}
- {{ title_suffix }}
- {{ content }}
- </article>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.