RenderEvents::SELECT_PAGE_DISPLAY_VARIANT

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/RenderEvents.php \Drupal\Core\Render\RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  2. 8.9.x core/lib/Drupal/Core/Render/RenderEvents.php \Drupal\Core\Render\RenderEvents::SELECT_PAGE_DISPLAY_VARIANT
  3. 11.x 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';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.