media-embed-error.html.twig

Same filename in this branch
  1. 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/content/media-embed-error.html.twig
  2. 8.9.x core/themes/seven/templates/classy/content/media-embed-error.html.twig
  3. 8.9.x core/themes/claro/templates/classy/content/media-embed-error.html.twig
  4. 8.9.x core/themes/bartik/templates/classy/content/media-embed-error.html.twig
  5. 8.9.x core/themes/classy/templates/content/media-embed-error.html.twig
  6. 8.9.x core/modules/media/templates/media-embed-error.html.twig
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/templates/classy/content/media-embed-error.html.twig
  2. 9 core/themes/stable9/templates/content/media-embed-error.html.twig
  3. 9 core/themes/seven/templates/classy/content/media-embed-error.html.twig
  4. 9 core/themes/claro/templates/classy/content/media-embed-error.html.twig
  5. 9 core/themes/bartik/templates/classy/content/media-embed-error.html.twig
  6. 9 core/themes/stable/templates/content/media-embed-error.html.twig
  7. 9 core/themes/classy/templates/content/media-embed-error.html.twig
  8. 9 core/modules/media/templates/media-embed-error.html.twig
  9. 10 core/profiles/demo_umami/themes/umami/templates/classy/content/media-embed-error.html.twig
  10. 10 core/themes/stable9/templates/content/media-embed-error.html.twig
  11. 10 core/themes/claro/templates/classy/content/media-embed-error.html.twig
  12. 10 core/modules/media/templates/media-embed-error.html.twig
  13. 11.x core/profiles/demo_umami/themes/umami/templates/classy/content/media-embed-error.html.twig
  14. 11.x core/themes/stable9/templates/content/media-embed-error.html.twig
  15. 11.x core/themes/claro/templates/classy/content/media-embed-error.html.twig
  16. 11.x core/modules/media/templates/media-embed-error.html.twig

Theme override for a missing media error.

Available variables

  • message: The message text.
  • attributes: HTML attributes for the containing element.

When a response from the back end can't be returned, a related error message is displayed from JavaScript.

See also

Drupal.theme.mediaEmbedPreviewError

1 theme call to media-embed-error.html.twig
MediaEmbed::renderMissingMediaIndicator in core/modules/media/src/Plugin/Filter/MediaEmbed.php
Builds the render array for the indicator when media cannot be loaded.

File

core/themes/stable/templates/content/media-embed-error.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a missing media error.
  5. *
  6. * Available variables
  7. * - message: The message text.
  8. * - attributes: HTML attributes for the containing element.
  9. *
  10. * When a response from the back end can't be returned, a related error message
  11. * is displayed from JavaScript.
  12. *
  13. * @see Drupal.theme.mediaEmbedPreviewError
  14. */
  15. #}
  16. <div{{ attributes }}>
  17. {{ message }}
  18. </div>

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