You are here

protected function HandlerAliasTest::viewsData in Drupal 10

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

File

core/modules/views/tests/src/Kernel/Handler/HandlerAliasTest.php, line 33

Class

HandlerAliasTest
Tests handler table and field aliases.

Namespace

Drupal\Tests\views\Kernel\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;
}