public function ViewsDataEvent::addData in Hook Event Dispatcher 8
Add data to the views data.
Parameters
array $data: Data to add to the views data.
See also
File
- src/
Event/ Views/ ViewsDataEvent.php, line 29
Class
- ViewsDataEvent
- Class ViewsDataEvent.
Namespace
Drupal\hook_event_dispatcher\Event\ViewsCode
public function addData(array $data) {
$this->data = \array_merge_recursive($this->data, $data);
}