public function PropertyOptions::submit in Form Builder 7.2
Submit handler for the editing form().
This function is responsible to store the new value into the $form_state. The value must be located at $form_state['values'][$property].
Parameters
array $form_state: Form API form_state of the field configure form.
Overrides PropertyBase::submit
File
- modules/
webform/ src/ PropertyOptions.php, line 10
Class
- PropertyOptions
- Special handling for $component['options'].
Namespace
Drupal\form_builder_webformCode
public function submit($form, &$form_state) {
// Webform needs the options to be saved as text.
$options = $form_state['values']['options']['options_field'];
parent::submit($form, $form_state);
$form_state['values']['options'] = $options;
}