RenderEvents::SELECT_PAGE_DISPLAY_VARIANT

Name of the event when selecting a page display variant to use.

This event allows you to select a different page display variant to use when rendering a page. The event listener method receives a \Drupal\Core\Render\PageDisplayVariantSelectionEvent instance.

See also

\Drupal\Core\Render\PageDisplayVariantSelectionEvent

\Drupal\Core\Render\MainContent\HtmlRenderer

\Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber

Related topics

Events
Overview of event dispatch and subscribing

File

core/lib/Drupal/Core/Render/RenderEvents.php, line 23

Class

RenderEvents
Defines events for the render system.

Namespace

Drupal\Core\Render

Code

const SELECT_PAGE_DISPLAY_VARIANT = 'render.page_display_variant.select';
doc_Drupal
2016-10-29 09:37:41
Comments
Leave a Comment

Please login to continue.