public function BlockPageDisplayVariantSubscriber::onSelectPageDisplayVariant in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber::onSelectPageDisplayVariant()
Selects the block page display variant.
Parameters
\Drupal\Core\Render\PageDisplayVariantSelectionEvent $event: The event to process.
File
- core/
modules/ block/ src/ EventSubscriber/ BlockPageDisplayVariantSubscriber.php, line 27 - Contains \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber.
Class
- BlockPageDisplayVariantSubscriber
- Selects the block page display variant.
Namespace
Drupal\block\EventSubscriberCode
public function onSelectPageDisplayVariant(PageDisplayVariantSelectionEvent $event) {
$event
->setPluginId('block_page');
}