1. 8.5.x core/lib/Drupal/Core/Render/RenderEvents.php RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  2. 8.0.x core/lib/Drupal/Core/Render/RenderEvents.php RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  3. 8.1.x core/lib/Drupal/Core/Render/RenderEvents.php RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  4. 8.2.x core/lib/Drupal/Core/Render/RenderEvents.php RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  5. 8.3.x core/lib/Drupal/Core/Render/RenderEvents.php RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  6. 8.4.x core/lib/Drupal/Core/Render/RenderEvents.php RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  7. 8.6.x core/lib/Drupal/Core/Render/RenderEvents.php 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

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