function ViewTestBase::viewsData

Same name in this branch
  1. 8.9.x core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::viewsData()
Same name in other branches
  1. 9 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::viewsData()
  2. 10 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::viewsData()
  3. 11.x core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::viewsData()

Returns the views data definition.

1 call to ViewTestBase::viewsData()
ViewTestBase::enableViewsTestModule in core/modules/views/src/Tests/ViewTestBase.php
Sets up the views_test_data.module.

File

core/modules/views/src/Tests/ViewTestBase.php, line 146

Class

ViewTestBase
Defines a base class for Views testing in the full web test environment.

Namespace

Drupal\views\Tests

Code

protected function viewsData() {
    return ViewTestData::viewsData();
}

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