AbstractViewsEvent.php in Hook Event Dispatcher 8.2
Same filename and directory in other branches
File
modules/views_event_dispatcher/src/Event/Views/AbstractViewsEvent.phpView source
<?php
namespace Drupal\views_event_dispatcher\Event\Views;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\views\ViewExecutable;
use Symfony\Component\EventDispatcher\Event;
/**
* Class AbstractViewsEvent.
*/
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;
}
}
Classes
Name | Description |
---|---|
AbstractViewsEvent | Class AbstractViewsEvent. |