class EntityTestViewsHooks
Hook implementations for entity_test.
Hierarchy
- class \Drupal\entity_test\Hook\EntityTestViewsHooks
Expanded class hierarchy of EntityTestViewsHooks
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Hook/ EntityTestViewsHooks.php, line 12
Namespace
Drupal\entity_test\HookView source
class EntityTestViewsHooks {
/**
* Implements hook_views_data_alter().
*/
public function viewsDataAlter(&$data) : void {
$data['entity_test']['name_alias'] = $data['entity_test']['name'];
$data['entity_test']['name_alias']['field']['real field'] = 'name';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
EntityTestViewsHooks::viewsDataAlter | public | function | Implements hook_views_data_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.