class RenderEvents
Same name in other branches
- 9 core/lib/Drupal/Core/Render/RenderEvents.php \Drupal\Core\Render\RenderEvents
- 10 core/lib/Drupal/Core/Render/RenderEvents.php \Drupal\Core\Render\RenderEvents
- 11.x core/lib/Drupal/Core/Render/RenderEvents.php \Drupal\Core\Render\RenderEvents
Defines events for the render system.
Hierarchy
- class \Drupal\Core\Render\RenderEvents
Expanded class hierarchy of RenderEvents
4 files declare their use of RenderEvents
- BlockPageDisplayVariantSubscriber.php in core/
modules/ block/ src/ EventSubscriber/ BlockPageDisplayVariantSubscriber.php - BlockPlaceEventSubscriber.php in core/
modules/ block_place/ src/ EventSubscriber/ BlockPlaceEventSubscriber.php - HtmlRenderer.php in core/
lib/ Drupal/ Core/ Render/ MainContent/ HtmlRenderer.php - TestPageDisplayVariantSubscriber.php in core/
modules/ system/ tests/ modules/ display_variant_test/ src/ EventSubscriber/ TestPageDisplayVariantSubscriber.php
File
-
core/
lib/ Drupal/ Core/ Render/ RenderEvents.php, line 8
Namespace
Drupal\Core\RenderView source
final class RenderEvents {
/**
* 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.
*
* @Event
*
* @see \Drupal\Core\Render\PageDisplayVariantSelectionEvent
* @see \Drupal\Core\Render\MainContent\HtmlRenderer
* @see \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber
*/
const SELECT_PAGE_DISPLAY_VARIANT = 'render.page_display_variant.select';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
RenderEvents::SELECT_PAGE_DISPLAY_VARIANT | constant | Name of the event when selecting a page display variant to use. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.