announcements-feed-admin.html.twig

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

Template file for the theming of announcement_feed admin page.

This template will get rendered when the user navigates to the announcements_feed.announcement route.

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()

File

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

View source
  1. {#
  2. /**
  3. * @file
  4. * Template file for the theming of announcement_feed admin page.
  5. *
  6. * This template will get rendered when the user navigates to the announcements_feed.announcement route.
  7. *
  8. * Available variables:
  9. * - count: Contains the total number of announcements.
  10. * - featured: A list of featured announcement objects.
  11. * - standard: A list of non-featured announcement objects.
  12. *
  13. * Announcement objects have the following variables:
  14. * - id: Unique id of the announcement.
  15. * - title: Title of the standard announcement.
  16. * - content: Short description of the announcement.
  17. * - datePublishedTimestamp: Timestamp of the announcement.
  18. * - url: Learn more link of the standard announcement.
  19. *
  20. * @see announcements_feed_theme()
  21. *
  22. * @ingroup themeable
  23. */
  24. #}
  25. {{ attach_library('announcements_feed/drupal.announcements_feed.page') }}
  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.