You are here

public function FieldBooleanTest::viewsData in Drupal 8

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

Returns the views data definition.

Overrides ViewsKernelTestBase::viewsData

File

core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php, line 30

Class

FieldBooleanTest
Tests the core Drupal\views\Plugin\views\field\Boolean handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

public function viewsData() {
  $data = parent::viewsData();
  $data['views_test_data']['age']['field']['id'] = 'boolean';
  return $data;
}