You are here

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

\hook_views_data()

File

src/Event/Views/ViewsDataEvent.php, line 29

Class

ViewsDataEvent
Class ViewsDataEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Views

Code

public function addData(array $data) {
  $this->data = \array_merge_recursive($this->data, $data);
}