You are here

public function Base::optionsFormSubmit in Openlayers 7.3

Submit callback for the options form.

Parameters

array $form: The form array.

array $form_state: The form_state array by reference.

Overrides ObjectInterface::optionsFormSubmit

8 calls to Base::optionsFormSubmit()
Circle::optionsFormSubmit in src/Plugin/Style/Circle/Circle.php
Submit callback for the options form.
Cluster::optionsFormSubmit in src/Plugin/Source/Cluster/Cluster.php
Submit callback for the options form.
Field::optionsFormSubmit in modules/openlayers_field/src/Plugin/Source/Field/Field.php
Submit callback for the options form.
OLMap::optionsFormSubmit in src/Plugin/Map/OLMap/OLMap.php
Submit callback for the options form.
Random::optionsFormSubmit in modules/openlayers_library/src/Plugin/Source/Random/Random.php
Submit callback for the options form.

... See full list

11 methods override Base::optionsFormSubmit()
Circle::optionsFormSubmit in src/Plugin/Style/Circle/Circle.php
Submit callback for the options form.
Cluster::optionsFormSubmit in src/Plugin/Source/Cluster/Cluster.php
Submit callback for the options form.
Field::optionsFormSubmit in modules/openlayers_field/src/Plugin/Source/Field/Field.php
Submit callback for the options form.
Group::optionsFormSubmit in src/Plugin/Layer/Group/Group.php
Submit callback for the options form.
OLMap::optionsFormSubmit in src/Plugin/Map/OLMap/OLMap.php
Submit callback for the options form.

... See full list

File

src/Types/Base.php, line 305
Class Object.

Class

Base
Class Base.

Namespace

Drupal\openlayers\Types

Code

public function optionsFormSubmit(array $form, array &$form_state) {
  if (isset($form_state['values']['options'])) {
    $options = array_merge((array) $this
      ->getOptions(), (array) $form_state['values']['options']);
    $this
      ->setOptions($options);
  }
  $form_state['item'] = $this
    ->getExport();

  // Refresh translatable strings.
  $this
    ->i18nStringsRefresh();
}