You are here

media-library-wrapper.html.twig in Drupal 10

Theme override of a container used to wrap the media library's modal dialog interface.

Available variables:

  • attributes: HTML attributes for the containing element.
  • menu: The menu of available media types to choose from.
  • content: The form to add new media items, followed by the grid or table of existing media items to choose from.

File

core/themes/stable/templates/media-library/media-library-wrapper.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override of a container used to wrap the media library's modal dialog
  5. * interface.
  6. *
  7. * Available variables:
  8. * - attributes: HTML attributes for the containing element.
  9. * - menu: The menu of available media types to choose from.
  10. * - content: The form to add new media items, followed by the grid or table of
  11. * existing media items to choose from.
  12. *
  13. * @see template_preprocess_media_library_wrapper()
  14. */
  15. #}
  16. <div{{ attributes }}>
  17. {{ menu }}
  18. {{ content }}
  19. </div>