You are here

protected function HandlerAliasTest::viewsData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/Handler/HandlerAliasTest.php \Drupal\views\Tests\Handler\HandlerAliasTest::viewsData()

Returns the views data definition.

Overrides ViewKernelTestBase::viewsData

File

core/modules/views/src/Tests/Handler/HandlerAliasTest.php, line 38
Contains \Drupal\views\Tests\Handler\HandlerAliasTest.

Class

HandlerAliasTest
Tests handler table and field aliases.

Namespace

Drupal\views\Tests\Handler

Code

protected function viewsData() {
  $data = parent::viewsData();

  // User the existing test_filter plugin.
  $data['views_test_data_alias']['table']['real table'] = 'views_test_data';
  $data['views_test_data_alias']['name_alias']['filter']['id'] = 'test_filter';
  $data['views_test_data_alias']['name_alias']['filter']['real field'] = 'name';
  return $data;
}