You are here

protected function FieldKernelTest::viewsData in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php \Drupal\Tests\views\Kernel\Handler\FieldKernelTest::viewsData()
  2. 10 core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php \Drupal\Tests\views\Kernel\Handler\FieldKernelTest::viewsData()

Returns the views data definition.

Overrides ViewsKernelTestBase::viewsData

File

core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php, line 40

Class

FieldKernelTest
Tests the generic field handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

protected function viewsData() {
  $data = parent::viewsData();
  $data['views_test_data']['job']['field']['id'] = 'test_field';
  $data['views_test_data']['job']['field']['click sortable'] = FALSE;
  $data['views_test_data']['id']['field']['click sortable'] = TRUE;
  return $data;
}