You are here

abstract class BaseViewsEvent in Hook Event Dispatcher 8

Class BaseViewsEvent.

Hierarchy

Expanded class hierarchy of BaseViewsEvent

File

src/Event/Views/BaseViewsEvent.php, line 12

Namespace

Drupal\hook_event_dispatcher\Event\Views
View source
abstract class BaseViewsEvent extends Event implements EventInterface {

  /**
   * The view.
   *
   * @var \Drupal\views\ViewExecutable
   */
  private $view;

  /**
   * ViewsPreExecuteEevent constructor.
   *
   * @param \Drupal\views\ViewExecutable $view
   *   The view.
   */
  public function __construct(ViewExecutable $view) {
    $this->view = $view;
  }

  /**
   * Get the view.
   *
   * @return \Drupal\views\ViewExecutable
   *   The view.
   */
  public function getView() {
    return $this->view;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseViewsEvent::$view private property The view.
BaseViewsEvent::getView public function Get the view.
BaseViewsEvent::__construct public function ViewsPreExecuteEevent constructor. 3
EventInterface::getDispatcherType public function Get the dispatcher type. 66