You are here

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

Default theme implementation 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/modules/media/templates/media-embed-error.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. <div{{ attributes }}>
  19. {{ message }}
  20. </div>

Related topics