public function OpenlayersObjects::edit_form_submit in Openlayers 7.3
Handle the submission of the edit form.
At this point, submission is successful. Our only responsibility is to copy anything out of values onto the item that we are able to edit.
If the keys all match up to the schema, this method will not need to be overridden.
Overrides ctools_export_ui::edit_form_submit
File
- modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersObjects.php, line 21 - Class openlayers_objects_ui.
Class
- OpenlayersObjects
- Class openlayers_objects_ui.
Code
public function edit_form_submit(&$form, &$form_state) {
parent::edit_form_submit($form, $form_state);
if (isset($form_state['values']['attachToMap'])) {
$form_state['item']->attachToMap = $form_state['values']['attachToMap'];
}
if (isset($form_state['values']['attachToLayer'])) {
$form_state['item']->attachToLayer = $form_state['values']['attachToLayer'];
}
}