entity_test.views.inc

Same filename in other branches
  1. 9 core/modules/system/tests/modules/entity_test/entity_test.views.inc
  2. 8.9.x core/modules/system/tests/modules/entity_test/entity_test.views.inc
  3. 11.x core/modules/system/tests/modules/entity_test/entity_test.views.inc

Include file for test module.

File

core/modules/system/tests/modules/entity_test/entity_test.views.inc

View source
<?php


/**
 * @file
 * Include file for test module.
 */

/**
 * Implements hook_views_data_alter().
 */
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';
}

Functions

Title Deprecated Summary
entity_test_views_data_alter Implements hook_views_data_alter().

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