RenderEvents.php 704 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<?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.
   *
13 14 15 16 17 18
   * 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
   *
19
   * @see \Drupal\Core\Render\PageDisplayVariantSelectionEvent
20 21
   * @see \Drupal\Core\Render\MainContent\HtmlRenderer
   * @see \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber
22 23 24 25
   */
  const SELECT_PAGE_DISPLAY_VARIANT = 'render.page_display_variant.select';

}