public function ViewsDataEvent::addData in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/views_event_dispatcher/src/Event/Views/ViewsDataEvent.php \Drupal\views_event_dispatcher\Event\Views\ViewsDataEvent::addData()
Add data to the views data.
Parameters
array $data: Data to add to the views data.
See also
File
- modules/
views_event_dispatcher/ src/ Event/ Views/ ViewsDataEvent.php, line 30
Class
- ViewsDataEvent
- Class ViewsDataEvent.
Namespace
Drupal\views_event_dispatcher\Event\ViewsCode
public function addData(array $data) {
$this->data = array_merge_recursive($this->data, $data);
}