feed-icon.html.twig in Drupal 10
Same filename in this branch
Same filename and directory in other branches
Theme override for a feed icon.
Available variables:
- url: An internal system path or a fully qualified external URL of the feed.
- title: Title of the feed for describing the feed on the subscribe link.
- 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.
3 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.
- Opml::attachTo in core/
modules/ views/ src/ Plugin/ views/ style/ Opml.php - SyndicateBlock::build in core/
modules/ node/ src/ Plugin/ Block/ SyndicateBlock.php
File
core/themes/stable9/templates/media-library/feed-icon.html.twigView source
- {#
- /**
- * @file
- * Theme override for a feed icon.
- *
- * Available variables:
- * - url: An internal system path or a fully qualified external URL of the feed.
- * - title: Title of the feed for describing the feed on the subscribe link.
- * - 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.
- */
- #}
- <a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
- {{ 'Subscribe to @title'|t({'@title': title}) }}
- </a>