announcements-feed.html.twig
Same filename in this branch
Same filename in other branches
Template file for the theming of announcement_feed off-canvas dialog.
This template will get rendered when the user clicks the announcement button in the toolbar.
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
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
- {#
- /**
- * @file
- * Template file for the theming of announcement_feed off-canvas dialog.
- *
- * This template will get rendered when the user clicks the announcement button in the toolbar.
- *
- * 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 announcements_feed_theme()
- *
- * @ingroup themeable
- */
- #}
- {% 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.