export-icon.html.twig in Views data export 8
Default theme implementation for an export icon.
Available variables:
- url: An internal system path of the data export.
- attributes: Remaining HTML attributes for the export link.
- format: The export format (csv, json, xml).
- class: HTML classes to be applied to the export link.
1 theme call to export-icon.html.twig
- DataExport::attachTo in src/
Plugin/ views/ style/ DataExport.php - @todo This should implement AttachableStyleInterface once https://www.drupal.org/node/2779205 lands.
File
templates/export-icon.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for an export icon.
- *
- * Available variables:
- * - url: An internal system path of the data export.
- * - attributes: Remaining HTML attributes for the export link.
- * - format: The export format (csv, json, xml).
- * - class: HTML classes to be applied to the export link.
- *
- * @ingroup themeable
- */
- #}
- <a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
- {{ 'Download @format'|t({'@format': format}) }}
- </a>