json-feed-icon.html.twig in JSON Feed 8
Default theme implementation for a JSON 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.
1 theme call to json-feed-icon.html.twig
- JsonFeedSerializer::attachTo in src/
Plugin/ views/ style/ JsonFeedSerializer.php
File
templates/json-feed-icon.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a JSON 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').addClass('json-feed-icon') }}>
- {{ 'Subscribe to @title'|t({'@title': title}) }}
- </a>