MediaTestEmbedThemeHooks.php

Namespace

Drupal\media_test_embed\Hook

File

core/modules/media/tests/modules/media_test_embed/src/Hook/MediaTestEmbedThemeHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\media_test_embed\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Theme hook implementations for media_test_embed.
 */
class MediaTestEmbedThemeHooks {
  
  /**
   * Implements hook_preprocess_HOOK().
   */
  public function preprocessMediaEmbedError(&$variables) : void {
    $variables['attributes']['class'][] = 'this-error-message-is-themeable';
  }

}

Classes

Title Deprecated Summary
MediaTestEmbedThemeHooks Theme hook implementations for media_test_embed.

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