You are here

protected function ViewsFormMultipleTest::viewsData in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/ViewsFormMultipleTest.php \Drupal\Tests\views\Functional\ViewsFormMultipleTest::viewsData()
  2. 9 core/modules/views/tests/src/Functional/ViewsFormMultipleTest.php \Drupal\Tests\views\Functional\ViewsFormMultipleTest::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;
}