You are here

protected function CacheTest::viewsData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Plugin

Code

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;
}