/** * {@inheritdoc} */ public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { parent::submitConfigurationForm($form, $form_state); if (!$form_state->getErrors()) { $this->configuration['zone'] = $form_state->getValue('zone'); } }
/** * {@inheritdoc} */ public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { parent::submitConfigurationForm($form, $form_state); if (!$form_state->getErrors()) { $this->configuration['country_code'] = $form_state->getValue('country_code'); $this->configuration['administrative_area'] = $form_state->getValue('administrative_area'); $this->configuration['locality'] = $form_state->getValue('locality'); $this->configuration['dependent_locality'] = $form_state->getValue('dependent_locality'); $this->configuration['included_postal_codes'] = $form_state->getValue('included_postal_codes'); $this->configuration['excluded_postal_codes'] = $form_state->getValue('excluded_postal_codes'); } }
/** * {@inheritdoc} */ public function defaultConfiguration() { return ['name' => 'EU'] + parent::defaultConfiguration(); }