constant 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';

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!RenderEvents.php/constant/RenderEvents::SELECT_PAGE_DISPLAY_VARIANT/8.1.x