Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

feed-icon.html.twig

Same filename in this branch
  1. 11.1.x core/themes/stable9/templates/media-library/feed-icon.html.twig
  2. 11.1.x core/modules/system/templates/feed-icon.html.twig

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
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
Builds and returns the renderable array for this block plugin.

File

core/themes/olivero/templates/misc/feed-icon.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a feed icon.
  5. *
  6. * Available variables:
  7. * - url: An internal system path or a fully qualified external URL of the feed.
  8. * - title: Title of the feed for describing the feed on the subscribe link.
  9. * - attributes: Remaining HTML attributes for the feed link.
  10. * - title: A descriptive title of the feed link.
  11. * - class: HTML classes to be applied to the feed link.
  12. */
  13. #}
  14. {{ attach_library('olivero/feed') }}
  15. <a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
  16. <span class="feed-icon__label">
  17. {{ title }}
  18. </span>
  19. <span class="feed-icon__icon" aria-hidden="true">
  20. {% include "@olivero/../images/rss.svg" %}
  21. </span>
  22. </a>

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal