function 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;
}

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