/** * {@inheritdoc} */ public function submitForm(array &$form, FormStateInterface $form_state) { $wrapper_key = $form_state->getValue('wrapper_key'); $choices = $form_state->getValue($wrapper_key); mailchimp_lists_process_subscribe_form_choices($choices, $this->fieldInstance, $this->fieldInstance->getEntity()); }
/** * {@inheritdoc} */ public function preSave() { parent::preSave(); $choices = $this->value; mailchimp_lists_process_subscribe_form_choices($choices, $this, $this->getEntity()); }