function ViewsTestDataViewsHooks::viewsDataAlter
Same name and namespace in other branches
- 11.x core/modules/views/tests/modules/views_test_data/src/Hook/ViewsTestDataViewsHooks.php \Drupal\views_test_data\Hook\ViewsTestDataViewsHooks::viewsDataAlter()
Implements hook_views_data_alter().
Attributes
#[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\HookCode
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.