fieldset--media-library-widget.html.twig
Same filename in other branches
- 9 core/themes/seven/templates/media-library/fieldset--media-library-widget.html.twig
- 9 core/themes/claro/templates/media-library/fieldset--media-library-widget.html.twig
- 8.9.x core/themes/seven/templates/media-library/fieldset--media-library-widget.html.twig
- 8.9.x core/themes/claro/templates/media-library/fieldset--media-library-widget.html.twig
- 10 core/themes/claro/templates/media-library/fieldset--media-library-widget.html.twig
Theme override for the media library widget.
See also
claro_preprocess_fieldset__media_library_widget()
template_preprocess_fieldset()
File
-
core/
themes/ claro/ templates/ media-library/ fieldset--media-library-widget.html.twig
View source
- {% extends 'fieldset.html.twig' %}
- {#
- /**
- * @file
- * Theme override for the media library widget.
- *
- * @see claro_preprocess_fieldset__media_library_widget()
- * @see claro_preprocess_fieldset()
- * @see template_preprocess_fieldset()
- */
- #}
- {% macro media_library_prefix(prefix) %}
- {% if prefix.empty_selection %}
- <p class="media-library-widget-empty-text">{{ prefix }}</p>
- {% else %}
- {{ prefix }}
- {% endif %}
- {% endmacro %}
- {%
- set attributes = attributes.addClass('media-library-widget')
- %}
- {%
- set prefix = _self.media_library_prefix(prefix)
- %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.