function ViewsTestDataViewsExecutionHooks::fieldViewsDataAlter

Implements hook_field_views_data_alter().

File

core/modules/views/tests/modules/views_test_data/src/Hook/ViewsTestDataViewsExecutionHooks.php, line 50

Class

ViewsTestDataViewsExecutionHooks
Hook implementations for views_test_data.

Namespace

Drupal\views_test_data\Hook

Code

public function fieldViewsDataAlter(&$data, FieldStorageConfigInterface $field_storage, $module) : void {
    \Drupal::state()->set('views_hook_test_field_views_data_alter', TRUE);
}

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