class EntityTestViewsHooks

Hook implementations for entity_test.

Hierarchy

Expanded class hierarchy of EntityTestViewsHooks

File

core/modules/system/tests/modules/entity_test/src/Hook/EntityTestViewsHooks.php, line 12

Namespace

Drupal\entity_test\Hook
View source
class EntityTestViewsHooks {
    
    /**
     * Implements hook_views_data_alter().
     */
    public function viewsDataAlter(&$data) {
        $data['entity_test']['name_alias'] = $data['entity_test']['name'];
        $data['entity_test']['name_alias']['field']['real field'] = 'name';
    }

}

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