public function Icon::submitConfigurationForm in Openlayers 8.4
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides OpenlayersConfigurablePluginBase::submitConfigurationForm
File
- src/
Plugin/ OpenlayersStyle/ Icon.php, line 233
Class
- Icon
- Defines the Icon style for Openlayers features.
Namespace
Drupal\openlayers\Plugin\OpenlayersStyleCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
$this->configuration['anchor'] = $form_state
->getValue('anchor');
$this->configuration['anchorOrigin'] = $form_state
->getValue('anchorOrigin');
$this->configuration['anchorXUnits'] = $form_state
->getValue('anchorXUnits');
$this->configuration['anchorYUnits'] = $form_state
->getValue('anchorYUnits');
$this->configuration['color'] = $form_state
->getValue('color');
$this->configuration['crossOrigin'] = $form_state
->getValue('crossOrigin');
$this->configuration['img'] = $form_state
->getValue('img');
$this->configuration['offset'] = $form_state
->getValue('offset');
$this->configuration['displacement'] = $form_state
->getValue('displacement');
$this->configuration['offsetOrigin'] = $form_state
->getValue('offsetOrigin');
$this->configuration['opacity'] = $form_state
->getValue('opacity');
$this->configuration['scale'] = $form_state
->getValue('scale');
$this->configuration['size'] = $form_state
->getValue('size');
$this->configuration['imgSize'] = $form_state
->getValue('imgSize');
$this->configuration['src'] = $form_state
->getValue('src');
}