You are here

class PageBottomEvent in Hook Event Dispatcher 8

Class PageBottomEvent.

Hierarchy

Expanded class hierarchy of PageBottomEvent

2 files declare their use of PageBottomEvent
hook_event_dispatcher.module in ./hook_event_dispatcher.module
Hook event dispatcher module.
PageBottomEventTest.php in tests/src/Unit/Page/PageBottomEventTest.php

File

src/Event/Page/PageBottomEvent.php, line 12

Namespace

Drupal\hook_event_dispatcher\Event\Page
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() {
    return $this->build;
  }

  /**
   * Set the build.
   *
   * @param array $build
   *   The build array.
   */
  public function setBuild(array $build) {
    $this->build = $build;
  }

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() {
    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::setBuild public function Set the build.
PageBottomEvent::__construct public function PageBottomEvent constructor.