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

Namesort descending Description
RenderEvents Defines events for the render system.