media-embed-error.html.twig in Drupal 10
Same filename in this branch
- 10 core/modules/media/templates/media-embed-error.html.twig
- 10 core/themes/starterkit_theme/templates/content/media-embed-error.html.twig
- 10 core/themes/classy/templates/content/media-embed-error.html.twig
- 10 core/themes/stable9/templates/content/media-embed-error.html.twig
- 10 core/themes/stable/templates/content/media-embed-error.html.twig
- 10 core/themes/claro/templates/classy/content/media-embed-error.html.twig
- 10 core/themes/seven/templates/classy/content/media-embed-error.html.twig
- 10 core/themes/bartik/templates/classy/content/media-embed-error.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/content/media-embed-error.html.twig
Same filename and directory in other branches
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/classy/templates/content/media-embed-error.html.twigView source
- {#
- /**
- * @file
- * 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 Drupal.theme.mediaEmbedPreviewError
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('classy/media_embed_error') }}
- <div{{ attributes.addClass('media-embed-error', 'media-embed-error--missing-source') }}>
- {{ message }}
- </div>