protected function SqlQueryTest::viewsData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/Plugin/SqlQueryTest.php \Drupal\views\Tests\Plugin\SqlQueryTest::viewsData()
Returns the views data definition.
Overrides ViewKernelTestBase::viewsData
File
- core/
modules/ views/ src/ Tests/ Plugin/ SqlQueryTest.php, line 31 - Contains \Drupal\views\Tests\Plugin\SqlQueryTest.
Class
- SqlQueryTest
- Tests the sql query plugin.
Namespace
Drupal\views\Tests\PluginCode
protected function viewsData() {
$data = parent::viewsData();
$data['views_test_data']['table']['base']['access query tag'] = 'test_tag';
$data['views_test_data']['table']['base']['query metadata'] = array(
'key1' => 'test_metadata',
'key2' => 'test_metadata2',
);
return $data;
}