function ViewsFormMultipleTest::viewsData

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

Overrides ViewTestBase::viewsData

File

core/modules/views/tests/src/Functional/ViewsFormMultipleTest.php, line 36

Class

ViewsFormMultipleTest
Tests a page with multiple Views forms.

Namespace

Drupal\Tests\views\Functional

Code

protected function viewsData() {
    $data = parent::viewsData();
    $data['views_test_data']['field_form_button_test']['field'] = [
        'title' => 'Button test',
        'help' => 'Adds a test form button.',
        'id' => 'field_form_button_test',
    ];
    return $data;
}

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