BlockPageDisplayVariantSubscriber::onSelectPageDisplayVariant

public BlockPageDisplayVariantSubscriber::onSelectPageDisplayVariant(PageDisplayVariantSelectionEvent $event)

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 22

Class

BlockPageDisplayVariantSubscriber
Selects the block page display variant.

Namespace

Drupal\block\EventSubscriber

Code

public function onSelectPageDisplayVariant(PageDisplayVariantSelectionEvent $event) {
  $event->setPluginId('block_page');
}
doc_Drupal
2016-10-29 08:47:46
Comments
Leave a Comment

Please login to continue.