function entity_test_views_data_alter in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/entity_test/entity_test.views.inc \entity_test_views_data_alter()
- 10 core/modules/system/tests/modules/entity_test/entity_test.views.inc \entity_test_views_data_alter()
Implements hook_views_data_alter().
File
- core/
modules/ system/ tests/ modules/ entity_test/ entity_test.views.inc, line 11 - Include file for test module.
Code
function entity_test_views_data_alter(&$data) {
$data['entity_test']['name_alias'] = $data['entity_test']['name'];
$data['entity_test']['name_alias']['field']['real field'] = 'name';
}