abstract class AbstractViewsEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/views_event_dispatcher/src/Event/Views/AbstractViewsEvent.php \Drupal\views_event_dispatcher\Event\Views\AbstractViewsEvent
Class AbstractViewsEvent.
Hierarchy
- class \Drupal\views_event_dispatcher\Event\Views\AbstractViewsEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of AbstractViewsEvent
File
- modules/
views_event_dispatcher/ src/ Event/ Views/ AbstractViewsEvent.php, line 12
Namespace
Drupal\views_event_dispatcher\Event\ViewsView source
abstract class AbstractViewsEvent extends Event implements EventInterface {
/**
* The view.
*
* @var \Drupal\views\ViewExecutable
*/
private $view;
/**
* AbstractViewsEvent 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() : ViewExecutable {
return $this->view;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractViewsEvent:: |
private | property | The view. | |
AbstractViewsEvent:: |
public | function | Get the view. | |
AbstractViewsEvent:: |
public | function | AbstractViewsEvent constructor. | 3 |
EventInterface:: |
public | function | Get the dispatcher type. | 75 |