public function InputRequired::submitOptionsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/exposed_form/InputRequired.php \Drupal\views\Plugin\views\exposed_form\InputRequired::submitOptionsForm()
Handle any special handling on the validate form.
Overrides PluginBase::submitOptionsForm
File
- core/
modules/ views/ src/ Plugin/ views/ exposed_form/ InputRequired.php, line 47 - Contains \Drupal\views\Plugin\views\exposed_form\InputRequired.
Class
- InputRequired
- Exposed form plugin that provides an exposed form with required input.
Namespace
Drupal\views\Plugin\views\exposed_formCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
$exposed_form_options = $form_state
->getValue('exposed_form_options');
$form_state
->setValue(array(
'exposed_form_options',
'text_input_required_format',
), $exposed_form_options['text_input_required']['format']);
$form_state
->setValue(array(
'exposed_form_options',
'text_input_required',
), $exposed_form_options['text_input_required']['value']);
parent::submitOptionsForm($form, $form_state);
}