function MediaTestEmbedThemeHooks::preprocessMediaEmbedError

Implements hook_preprocess_HOOK().

Attributes

#[Hook('preprocess_media_embed_error')]

File

core/modules/media/tests/modules/media_test_embed/src/Hook/MediaTestEmbedThemeHooks.php, line 17

Class

MediaTestEmbedThemeHooks
Theme hook implementations for media_test_embed.

Namespace

Drupal\media_test_embed\Hook

Code

public function preprocessMediaEmbedError(&$variables) : void {
  $variables['attributes']['class'][] = 'this-error-message-is-themeable';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.