public static function TestPageDisplayVariantSubscriber::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php \Drupal\display_variant_test\EventSubscriber\TestPageDisplayVariantSubscriber::getSubscribedEvents()
 - 10 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\EventSubscriberCode
public static function getSubscribedEvents() {
  $events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = [
    'onSelectPageDisplayVariant',
  ];
  return $events;
}