public function AddMailchimpEventWebformHandler::submitConfigurationForm in Mailchimp 2.x
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 WebformHandlerBase::submitConfigurationForm
File
- modules/
mailchimp_events/ src/ Plugin/ WebformHandler/ AddMailchimpEventWebformHandler.php, line 253
Class
- AddMailchimpEventWebformHandler
- Webform submission Event handler.
Namespace
Drupal\mailchimp_events\Plugin\WebformHandlerCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
$this
->applyFormStateToConfiguration($form_state);
$this->configuration['email'] = $this
->getEmailToken($form_state
->getValues());
$this->configuration['properties'] = $form_state
->getValue('events')['event_value']['properties'];
}