class NodeTestViewsViewsHooks

Hook implementations for node_test_views.

Hierarchy

Expanded class hierarchy of NodeTestViewsViewsHooks

File

core/modules/node/tests/modules/node_test_views/src/Hook/NodeTestViewsViewsHooks.php, line 12

Namespace

Drupal\node_test_views\Hook
View source
class NodeTestViewsViewsHooks {
    
    /**
     * Implements hook_views_data_alter().
     */
    public function viewsDataAlter(array &$data) {
        // Make node language use the basic field handler if requested.
        if (\Drupal::state()->get('node_test_views.use_basic_handler')) {
            $data['node_field_data']['langcode']['field']['id'] = 'language';
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary
NodeTestViewsViewsHooks::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.