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.
1 theme call to filefield-sources-list.html.twig
- filefield_sources_field_process in ./
filefield_sources.module - A #process callback to extend the filefield_widget element type.
File
templates/filefield-sources-list.html.twigView source
- {#
- /**
- * @file
- * Theme filefield-sources-list.
- *
- * Available variables:
- * - id: element id.
- * - sources: Array of sources keyed by name, with label & description values.
- *
- * @ingroup themeable
- */
- #}
- <div class="filefield-sources-list">
- {% for name, source in sources %}
- {% if not loop.first %} | {% endif %}
- <a href="#" onclick="return false;" title="{{ source.description }}" id="{{ id }}-{{ name }}-source" class="filefield-source filefield-source-{{ name }}">
- {{ source.label }}
- </a>
- {% endfor %}
- </div>