protected function HandlerAliasTest::viewsData in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Kernel/Handler/HandlerAliasTest.php \Drupal\Tests\views\Kernel\Handler\HandlerAliasTest::viewsData()
- 10 core/modules/views/tests/src/Kernel/Handler/HandlerAliasTest.php \Drupal\Tests\views\Kernel\Handler\HandlerAliasTest::viewsData()
Returns the views data definition.
Overrides ViewsKernelTestBase::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\HandlerCode
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;
}