public function ElementBase::configurationSubmit in Form Builder 7.2
Submit handler for the configuration form.
Overrides ElementInterface::configurationSubmit
1 call to ElementBase::configurationSubmit()
- HiddenElement::configurationSubmit in modules/
webform/ src/ HiddenElement.php - Submit handler for the configuration form.
1 method overrides ElementBase::configurationSubmit()
- HiddenElement::configurationSubmit in modules/
webform/ src/ HiddenElement.php - Submit handler for the configuration form.
File
- src/
ElementBase.php, line 82
Class
Namespace
Drupal\form_builderCode
public function configurationSubmit(&$form, &$form_state) {
// Allow each property to do any necessary submission handling.
foreach ($this
->getProperties() as $property) {
$property
->submit($form, $form_state);
}
// Update the field according to the settings in $form_state['values'].
$saveable = $this
->getSaveableProperties();
foreach ($form_state['values'] as $property => $value) {
if (in_array($property, $saveable, TRUE)) {
$this
->setProperty($property, $value);
}
}
}