function CustomBooleanTest::viewsData

Same name and namespace in other branches
  1. 9 core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php \Drupal\Tests\views_ui\Functional\CustomBooleanTest::viewsData()
  2. 10 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 31

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.