aggregator-feed-source.html.twig

Default theme implementation to present the source of the feed.

The contents are rendered above feed listings when browsing source feeds. For example, "example.com/aggregator/sources/1".

Available variables:

  • source_icon: Feed icon linked to the source. Rendered through feed-icon.html.twig.
  • source_image: Image set by the feed source.
  • source_description: Description set by the feed source.
  • source_url: URL to the feed source.
  • last_checked: How long ago the feed was checked locally.

See also

template_preprocess()

template_preprocess_aggregator_feed_source()

File

drupal/core/modules/aggregator/templates/aggregator-feed-source.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to present the source of the feed.
  5. *
  6. * The contents are rendered above feed listings when browsing source feeds.
  7. * For example, "example.com/aggregator/sources/1".
  8. *
  9. * Available variables:
  10. * - source_icon: Feed icon linked to the source. Rendered through
  11. * feed-icon.html.twig.
  12. * - source_image: Image set by the feed source.
  13. * - source_description: Description set by the feed source.
  14. * - source_url: URL to the feed source.
  15. * - last_checked: How long ago the feed was checked locally.
  16. *
  17. * @see template_preprocess()
  18. * @see template_preprocess_aggregator_feed_source()
  19. *
  20. * @ingroup themeable
  21. */
  22. #}
  23. <div{{ attributes}}>
  24. {{ source_icon }}
  25. {{ source_image }}
  26. <div class="feed-description">
  27. {{ source_description }}
  28. </div>
  29. <div class="feed-url">
  30. <em>{{ 'URL'|t }}:</em> <a href="{{ source_url }}">{{ source_url }}</a>
  31. </div>
  32. <div class="feed-updated">
  33. <em>{{ 'Updated'|t }}:</em> {{ last_checked }}
  34. </div>
  35. </div>

Related topics