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