RenderEvents.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Render/RenderEvents.php
  2. 8.9.x core/lib/Drupal/Core/Render/RenderEvents.php
  3. 10 core/lib/Drupal/Core/Render/RenderEvents.php

Namespace

Drupal\Core\Render

File

core/lib/Drupal/Core/Render/RenderEvents.php

View source
<?php

namespace Drupal\Core\Render;


/**
 * Defines events for the render system.
 */
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';

}

Classes

Title Deprecated Summary
RenderEvents Defines events for the render system.

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