protected function CacheTest::viewsData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/Plugin/CacheTest.php \Drupal\views\Tests\Plugin\CacheTest::viewsData()
Returns the views data definition.
Overrides ViewKernelTestBase::viewsData
File
- core/
modules/ views/ src/ Tests/ Plugin/ CacheTest.php, line 55 - Contains \Drupal\views\Tests\Plugin\CacheTest.
Class
- CacheTest
- Tests pluggable caching for views.
Namespace
Drupal\views\Tests\PluginCode
protected function viewsData() {
$data = parent::viewsData();
$data['views_test_data']['test_cache_context'] = [
'real field' => 'name',
'title' => 'Test cache context',
'filter' => [
'id' => 'views_test_test_cache_context',
],
];
return $data;
}