node_test_views.views.inc in Drupal 8
Same filename and directory in other branches
Provides views data and hooks for node_test_views module.
File
core/modules/node/tests/modules/node_test_views/node_test_views.views.incView source
<?php
/**
* @file
* Provides views data and hooks for node_test_views module.
*/
/**
* Implements hook_views_data_alter().
*/
function node_test_views_views_data_alter(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';
}
}
Functions
Name | Description |
---|---|
node_test_views_views_data_alter | Implements hook_views_data_alter(). |