You are here

protected function ViewsFormMultipleTest::viewsData in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/ViewsFormMultipleTest.php \Drupal\Tests\views\Functional\ViewsFormMultipleTest::viewsData()

Returns the views data definition.

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' => t('Button test'),
    'help' => t('Adds a test form button.'),
    'id' => 'field_form_button_test',
  ];
  return $data;
}