You are here

class PageBottomEvent in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/core_event_dispatcher/src/Event/Theme/PageBottomEvent.php \Drupal\core_event_dispatcher\Event\Theme\PageBottomEvent

Class PageBottomEvent.

Hierarchy

Expanded class hierarchy of PageBottomEvent

2 files declare their use of PageBottomEvent
core_event_dispatcher.module in modules/core_event_dispatcher/core_event_dispatcher.module
Core event dispatcher submodule.
PageEventTest.php in modules/core_event_dispatcher/tests/src/Unit/Theme/PageEventTest.php

File

modules/core_event_dispatcher/src/Event/Theme/PageBottomEvent.php, line 12

Namespace

Drupal\core_event_dispatcher\Event\Theme
View source
class PageBottomEvent extends Event implements EventInterface {

  /**
   * The build array.
   *
   * @var array
   */
  private $build;

  /**
   * PageBottomEvent constructor.
   *
   * @param array $build
   *   The build array.
   */
  public function __construct(array &$build) {
    $this->build =& $build;
  }

  /**
   * Get the build array.
   *
   * @return array
   *   The build array.
   */
  public function &getBuild() : array {
    return $this->build;
  }

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() : string {
    return HookEventDispatcherInterface::PAGE_BOTTOM;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PageBottomEvent::$build private property The build array.
PageBottomEvent::getBuild public function Get the build array.
PageBottomEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType
PageBottomEvent::__construct public function PageBottomEvent constructor.