class ViewsTestDataElementForm
Same name and namespace in other branches
- 11.x core/modules/views/tests/modules/views_test_data/src/Form/ViewsTestDataElementForm.php \Drupal\views_test_data\Form\ViewsTestDataElementForm
Simple form page callback to test the view element.
@internal
Hierarchy
- class \Drupal\Core\Form\FormBase extends \Drupal\Core\Form\FormInterface, \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Logger\LoggerChannelTrait, \Drupal\Core\Messenger\MessengerTrait, \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\views_test_data\Form\ViewsTestDataElementForm implements \Drupal\Core\Form\FormBase
Expanded class hierarchy of ViewsTestDataElementForm
1 string reference to 'ViewsTestDataElementForm'
- views_test_data.routing.yml in core/
modules/ views/ tests/ modules/ views_test_data/ views_test_data.routing.yml - core/modules/views/tests/modules/views_test_data/views_test_data.routing.yml
File
-
core/
modules/ views/ tests/ modules/ views_test_data/ src/ Form/ ViewsTestDataElementForm.php, line 13
Namespace
Drupal\views_test_data\FormView source
class ViewsTestDataElementForm extends FormBase {
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'views_test_data_element_form';
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['view'] = [
'#type' => 'view',
'#name' => 'test_view_embed',
'#display_id' => 'default',
'#arguments' => [
25,
],
'#embed' => FALSE,
];
return $form;
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.