You are here

public static function TestPageDisplayVariantSubscriber::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php \Drupal\display_variant_test\EventSubscriber\TestPageDisplayVariantSubscriber::getSubscribedEvents()
  2. 9 core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php \Drupal\display_variant_test\EventSubscriber\TestPageDisplayVariantSubscriber::getSubscribedEvents()

File

core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php, line 34

Class

TestPageDisplayVariantSubscriber
Selects the test page display variant.

Namespace

Drupal\display_variant_test\EventSubscriber

Code

public static function getSubscribedEvents() : array {
  $events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = [
    'onSelectPageDisplayVariant',
  ];
  return $events;
}