feed-icon.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/olivero/templates/misc/feed-icon.html.twig
- 9 core/themes/stable9/templates/media-library/feed-icon.html.twig
- 9 core/themes/stable/templates/misc/feed-icon.html.twig
- 9 core/modules/system/templates/feed-icon.html.twig
- 10 core/themes/olivero/templates/misc/feed-icon.html.twig
- 10 core/themes/stable9/templates/media-library/feed-icon.html.twig
- 10 core/modules/system/templates/feed-icon.html.twig
- 11.x core/themes/olivero/templates/misc/feed-icon.html.twig
- 11.x core/themes/stable9/templates/media-library/feed-icon.html.twig
- 11.x core/modules/system/templates/feed-icon.html.twig
Default theme implementation for a feed icon.
Available variables:
- url: An internal system path or a fully qualified external URL of the feed.
- attributes: Remaining HTML attributes for the feed link.
- title: A descriptive title of the feed link.
- class: HTML classes to be applied to the feed link.
5 theme calls to feed-icon.html.twig
- AddFeedTest::testFeedIconEscaping in core/
modules/ system/ tests/ src/ Kernel/ Common/ AddFeedTest.php - Checks that special characters are correctly escaped.
- FeedViewBuilder::buildComponents in core/
modules/ aggregator/ src/ FeedViewBuilder.php - Builds the component fields and properties of a set of entities.
- Opml::attachTo in core/
modules/ views/ src/ Plugin/ views/ style/ Opml.php - Rss::attachTo in core/
modules/ views/ src/ Plugin/ views/ style/ Rss.php - SyndicateBlock::build in core/
modules/ node/ src/ Plugin/ Block/ SyndicateBlock.php
File
-
core/
modules/ system/ templates/ feed-icon.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation for a feed icon.
- *
- * Available variables:
- * - url: An internal system path or a fully qualified external URL of the feed.
- * - attributes: Remaining HTML attributes for the feed link.
- * - title: A descriptive title of the feed link.
- * - class: HTML classes to be applied to the feed link.
- *
- * @ingroup themeable
- */
- #}
- <a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
- {{ 'Subscribe to @title'|t({'@title': title}) }}
- </a>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.