function ViewsTestDataAlterHooks::viewsDataAlter
Implements hook_views_data_alter().
File
-
core/
modules/ views/ tests/ modules/ views_test_data_alter/ src/ Hook/ ViewsTestDataAlterHooks.php, line 17
Class
- ViewsTestDataAlterHooks
- Hook implementations for views_test_data_alter.
Namespace
Drupal\views_test_data_alter\HookCode
public function viewsDataAlter(array &$data) : void {
// Modify a filter to use a different filter handler plugin
// by default so that we can test that the handler used
// respects the handler plugin ID specified in the
// configuration.
$data['node_field_data']['status']['filter']['id'] = 'numeric';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.