You are here

media-embed-error.html.twig in Drupal 10

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

File

core/profiles/demo_umami/themes/umami/templates/classy/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. * @ingroup themeable
  16. */
  17. #}
  18. {{ attach_library('umami/classy.media_embed_error') }}
  19. <div{{ attributes.addClass('media-embed-error', 'media-embed-error--missing-source') }}>
  20. {{ message }}
  21. </div>

Related topics