final class ViewsDataAlterEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/views_event_dispatcher/src/Event/Views/ViewsDataAlterEvent.php \Drupal\views_event_dispatcher\Event\Views\ViewsDataAlterEvent
Class ViewsDataAlterEvent.
Hierarchy
- class \Drupal\views_event_dispatcher\Event\Views\ViewsDataAlterEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of ViewsDataAlterEvent
2 files declare their use of ViewsDataAlterEvent
- ViewDataEventTest.php in modules/
views_event_dispatcher/ tests/ src/ Unit/ Views/ ViewDataEventTest.php - views_event_dispatcher.module in modules/
views_event_dispatcher/ views_event_dispatcher.module - Views event dispatcher submodule.
File
- modules/
views_event_dispatcher/ src/ Event/ Views/ ViewsDataAlterEvent.php, line 12
Namespace
Drupal\views_event_dispatcher\Event\ViewsView source
final class ViewsDataAlterEvent extends Event implements EventInterface {
/**
* Data.
*
* @var array
*/
private $data;
/**
* ViewsDataAlterEvent constructor.
*
* @param array $data
* Data.
*/
public function __construct(array &$data) {
$this->data =& $data;
}
/**
* Get data by refence.
*
* @return array
* Data.
*/
public function &getData() : array {
return $this->data;
}
/**
* Get the dispatcher type.
*
* @return string
* The dispatcher type.
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::VIEWS_DATA_ALTER;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ViewsDataAlterEvent:: |
private | property | Data. | |
ViewsDataAlterEvent:: |
public | function | Get data by refence. | |
ViewsDataAlterEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
ViewsDataAlterEvent:: |
public | function | ViewsDataAlterEvent constructor. |