function DisplayTest::submitOptionsForm
Same name in other branches
- 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php \Drupal\views_test_data\Plugin\views\display\DisplayTest::submitOptionsForm()
- 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php \Drupal\views_test_data\Plugin\views\display\DisplayTest::submitOptionsForm()
- 10 core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php \Drupal\views_test_data\Plugin\views\display\DisplayTest::submitOptionsForm()
Overrides DisplayPluginBase::submitOptionsForm
File
-
core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ display/ DisplayTest.php, line 111
Class
- DisplayTest
- Defines a Display test plugin.
Namespace
Drupal\views_test_data\Plugin\views\displayCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
parent::submitOptionsForm($form, $form_state);
switch ($form_state->get('section')) {
case 'test_option':
$this->setOption('test_option', $form_state->getValue('test_option'));
break;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.