details--media-library-add-form-selected-media.html.twig

Same filename in this branch
  1. 9 core/themes/claro/templates/media-library/details--media-library-add-form-selected-media.html.twig
Same filename in other branches
  1. 8.9.x core/themes/seven/templates/media-library/details--media-library-add-form-selected-media.html.twig
  2. 8.9.x core/themes/claro/templates/media-library/details--media-library-add-form-selected-media.html.twig
  3. 10 core/themes/claro/templates/media-library/details--media-library-add-form-selected-media.html.twig
  4. 11.x core/themes/claro/templates/media-library/details--media-library-add-form-selected-media.html.twig

Theme override for the "Additional selected media" area of the modal media library dialog.

Available variables

  • attributes: A list of HTML attributes for the details element.
  • errors: (optional) Any errors for this details element, may not be set.
  • title: (optional) The title of the element, may not be set.
  • summary_attributes: A list of HTML attributes for the summary element.
  • description: (optional) The description of the element, may not be set.
  • children: (optional) The children of the element, may not be set.
  • value: (optional) The value of the element, may not be set.

See also

template_preprocess_details()

File

core/themes/seven/templates/media-library/details--media-library-add-form-selected-media.html.twig

View source
  1. {% extends "details.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Theme override for the "Additional selected media" area of the modal media
  6. * library dialog.
  7. *
  8. * Available variables
  9. * - attributes: A list of HTML attributes for the details element.
  10. * - errors: (optional) Any errors for this details element, may not be set.
  11. * - title: (optional) The title of the element, may not be set.
  12. * - summary_attributes: A list of HTML attributes for the summary element.
  13. * - description: (optional) The description of the element, may not be set.
  14. * - children: (optional) The children of the element, may not be set.
  15. * - value: (optional) The value of the element, may not be set.
  16. *
  17. * @see template_preprocess_details()
  18. */
  19. #}
  20. {% set attributes = attributes.addClass('media-library-add-form__selected-media seven-details') %}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.