function MediaTestEmbedThemeHooks::preprocessMediaEmbedError
Same name and namespace in other branches
- 11.x core/modules/media/tests/modules/media_test_embed/src/Hook/MediaTestEmbedThemeHooks.php \Drupal\media_test_embed\Hook\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\HookCode
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.