You are here

constant RenderEvents::SELECT_PAGE_DISPLAY_VARIANT in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Render/RenderEvents.php \Drupal\Core\Render\RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  2. 10 core/lib/Drupal/Core/Render/RenderEvents.php \Drupal\Core\Render\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';