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/themes/stable9/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>