From 7ef5eb29482e9068927f162d94ccfe5f826848b7 Mon Sep 17 00:00:00 2001 From: Oden Date: Fri, 24 May 2024 13:47:58 -0700 Subject: [PATCH] PE-590 Add image and warning badge for missing media (#584) --- .../media/media-embed-error.html.twig | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 web/themes/custom/westy/templates/media/media-embed-error.html.twig diff --git a/web/themes/custom/westy/templates/media/media-embed-error.html.twig b/web/themes/custom/westy/templates/media/media-embed-error.html.twig new file mode 100644 index 000000000..a21bc174f --- /dev/null +++ b/web/themes/custom/westy/templates/media/media-embed-error.html.twig @@ -0,0 +1,21 @@ +{# +/** + * @file + * 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 Drupal.theme.mediaEmbedPreviewError + * + * @ingroup themeable + */ +#} + + + {{ message }} +