function BlockPageDisplayVariantSubscriber::getSubscribedEvents
Same name in other branches
- 9 core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber::getSubscribedEvents()
- 10 core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber::getSubscribedEvents()
- 11.x core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber::getSubscribedEvents()
File
-
core/
modules/ block/ src/ EventSubscriber/ BlockPageDisplayVariantSubscriber.php, line 29
Class
- BlockPageDisplayVariantSubscriber
- Selects the block page display variant.
Namespace
Drupal\block\EventSubscriberCode
public static function getSubscribedEvents() {
$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.