announcements-feed.html.twig

Same filename in this branch
  1. main core/themes/stable9/templates/announcements_feed/announcements-feed.html.twig
Same filename and directory in other branches
  1. 10 core/themes/stable9/templates/announcements_feed/announcements-feed.html.twig
  2. 11.x core/themes/stable9/templates/announcements_feed/announcements-feed.html.twig
  3. 11.x core/modules/announcements_feed/templates/announcements-feed.html.twig
  4. 10 core/modules/announcements_feed/templates/announcements-feed.html.twig

Template file for the theming of announcement_feed off-canvas dialog.

This template is used for the off-canvas announcements dialog and for the announcements block.

Available variables:

  • count: Contains the total number of announcements.
  • featured: A list of featured announcement objects.
  • standard: A list of non-featured announcement objects.

Announcement objects have the following variables:

  • id: Unique id of the announcement.
  • title: Title of the standard announcement.
  • content: Short description of the announcement.
  • datePublishedTimestamp: Timestamp of the announcement.
  • url: Learn more link of the standard announcement.

See also

announcements_feed_theme()

1 theme call to announcements-feed.html.twig
AnnounceRenderer::render in core/modules/announcements_feed/src/AnnounceRenderer.php
Generates the announcements feed render array.

File

core/modules/announcements_feed/templates/announcements-feed.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Template file for the theming of announcement_feed off-canvas dialog.
  5. *
  6. * This template is used for the off-canvas announcements dialog and for the
  7. * announcements block.
  8. *
  9. * Available variables:
  10. * - count: Contains the total number of announcements.
  11. * - featured: A list of featured announcement objects.
  12. * - standard: A list of non-featured announcement objects.
  13. *
  14. * Announcement objects have the following variables:
  15. * - id: Unique id of the announcement.
  16. * - title: Title of the standard announcement.
  17. * - content: Short description of the announcement.
  18. * - datePublishedTimestamp: Timestamp of the announcement.
  19. * - url: Learn more link of the standard announcement.
  20. *
  21. * @see announcements_feed_theme()
  22. *
  23. * @ingroup themeable
  24. */
  25. #}
  26. {{ include('@announcements_feed/announcements.html.twig') }}

Related topics


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.