You are here

filefield-sources-list.html.twig in FileField Sources 8

Theme filefield-sources-list.

Available variables:

  • id: element id.
  • sources: Array of sources keyed by name, with label & description values.

File

templates/filefield-sources-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme filefield-sources-list.
  5. *
  6. * Available variables:
  7. * - id: element id.
  8. * - sources: Array of sources keyed by name, with label & description values.
  9. *
  10. * @ingroup themeable
  11. */
  12. #}
  13. <div class="filefield-sources-list">
  14. {% for name, source in sources %}
  15. {% if not loop.first %} | {% endif %}
  16. <a href="#" onclick="return false;" title="{{ source.description }}" id="{{ id }}-{{ name }}-source" class="filefield-source filefield-source-{{ name }}">
  17. {{ source.label }}
  18. </a>
  19. {% endfor %}
  20. </div>