function ViewsTestDataViewsHooks::viewsDataAlter

Implements hook_views_data_alter().

File

core/modules/views/tests/modules/views_test_data/src/Hook/ViewsTestDataViewsHooks.php, line 37

Class

ViewsTestDataViewsHooks
Hook implementations for views_test_data.

Namespace

Drupal\views_test_data\Hook

Code

public function viewsDataAlter(array &$data) : void {
    \Drupal::state()->set('views_hook_test_views_data_alter', TRUE);
    \Drupal::state()->set('views_hook_test_views_data_alter_data', $data);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.