protected function CacheTest::viewsData in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/Plugin/CacheTest.php \Drupal\Tests\views\Kernel\Plugin\CacheTest::viewsData()
- 9 core/modules/views/tests/src/Kernel/Plugin/CacheTest.php \Drupal\Tests\views\Kernel\Plugin\CacheTest::viewsData()
Returns the views data definition.
Overrides ViewsKernelTestBase::viewsData
File
- core/
modules/ views/ tests/ src/ Kernel/ Plugin/ CacheTest.php, line 51
Class
- CacheTest
- Tests pluggable caching for views.
Namespace
Drupal\Tests\views\Kernel\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;
}