function CustomBooleanTest::viewsData

Same name in other branches
  1. 9 core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php \Drupal\Tests\views_ui\Functional\CustomBooleanTest::viewsData()
  2. 8.9.x core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php \Drupal\Tests\views_ui\Functional\CustomBooleanTest::viewsData()
  3. 11.x core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php \Drupal\Tests\views_ui\Functional\CustomBooleanTest::viewsData()

\Drupal\views\Tests\ViewTestBase::viewsData().

Overrides ViewTestBase::viewsData

File

core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php, line 32

Class

CustomBooleanTest
Tests the UI and functionality for the Custom boolean field handler options.

Namespace

Drupal\Tests\views_ui\Functional

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.