You are here

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.

File

templates/export-icon.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for an export icon.
  5. *
  6. * Available variables:
  7. * - url: An internal system path of the data export.
  8. * - attributes: Remaining HTML attributes for the export link.
  9. * - format: The export format (csv, json, xml).
  10. * - class: HTML classes to be applied to the export link.
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
  16. {{ 'Download @format'|t({'@format': format}) }}
  17. </a>