function HandlerAliasTest::viewsData
Same name in other branches
- 9 core/modules/views/tests/src/Kernel/Handler/HandlerAliasTest.php \Drupal\Tests\views\Kernel\Handler\HandlerAliasTest::viewsData()
- 8.9.x core/modules/views/tests/src/Kernel/Handler/HandlerAliasTest.php \Drupal\Tests\views\Kernel\Handler\HandlerAliasTest::viewsData()
- 11.x core/modules/views/tests/src/Kernel/Handler/HandlerAliasTest.php \Drupal\Tests\views\Kernel\Handler\HandlerAliasTest::viewsData()
Overrides ViewsKernelTestBase::viewsData
File
-
core/
modules/ views/ tests/ src/ Kernel/ Handler/ HandlerAliasTest.php, line 41
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.