You are here

aggregator-item.html.twig in Zircon Profile 8

Default theme implementation to present a feed item in an aggregator page.

Available variables:

  • url: URL to the originating feed item.
  • title: 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.

File

core/modules/aggregator/templates/aggregator-item.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to present a feed item in an aggregator page.
  5. *
  6. * Available variables:
  7. * - url: URL to the originating feed item.
  8. * - title: Title of the feed item.
  9. * - content: All field items. Use {{ content }} to print them all,
  10. * or print a subset such as {{ content.field_example }}. Use
  11. * {{ content|without('field_example') }} to temporarily suppress the printing
  12. * of a given element.
  13. *
  14. * @see template_preprocess_aggregator_item()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. <article{{ attributes }}>
  20. {{ title_prefix }}
  21. <h3>
  22. <a href="{{ url }}">{{ title }}</a>
  23. </h3>
  24. {{ title_suffix }}
  25. {{ content }}
  26. </article>

Related topics