container--media-library-content.html.twig
Same filename in this branch
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/media-library/container--media-library-content.html.twig
- 8.9.x core/themes/seven/templates/classy/media-library/container--media-library-content.html.twig
- 8.9.x core/themes/claro/templates/classy/media-library/container--media-library-content.html.twig
- 8.9.x core/themes/bartik/templates/classy/media-library/container--media-library-content.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/classy/media-library/container--media-library-content.html.twig
- 9 core/themes/seven/templates/classy/media-library/container--media-library-content.html.twig
- 9 core/themes/claro/templates/classy/media-library/container--media-library-content.html.twig
- 9 core/themes/bartik/templates/classy/media-library/container--media-library-content.html.twig
- 9 core/themes/classy/templates/media-library/container--media-library-content.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/media-library/container--media-library-content.html.twig
- 10 core/themes/claro/templates/classy/media-library/container--media-library-content.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/media-library/container--media-library-content.html.twig
- 11.x core/themes/claro/templates/classy/media-library/container--media-library-content.html.twig
Theme implementation the content area of the modal media library dialog.
The content area is everything that is not the menu of available media types. This includes the form to add new media items, if available, and the view of available media to select.
Available variables:
- attributes: HTML attributes for the containing element.
- children: The rendered child elements of the container.
- has_parent: A flag to indicate that the container has one or more parent containers.
See also
template_preprocess_container()
File
-
core/
themes/ classy/ templates/ media-library/ container--media-library-content.html.twig
View source
- {#
- /**
- * @file
- * Theme implementation the content area of the modal media library dialog.
- *
- * The content area is everything that is not the menu of available media
- * types. This includes the form to add new media items, if available, and
- * the view of available media to select.
- *
- * Available variables:
- * - attributes: HTML attributes for the containing element.
- * - children: The rendered child elements of the container.
- * - has_parent: A flag to indicate that the container has one or more parent
- containers.
- *
- * @see template_preprocess_container()
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- has_parent ? 'js-form-wrapper',
- has_parent ? 'form-wrapper',
- 'media-library-content',
- ]
- %}
- <div{{ attributes.addClass(classes) }}>{{ children }}</div>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.