コード例 #1
0
 /**
  * {@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());
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function preSave()
 {
     parent::preSave();
     $choices = $this->value;
     mailchimp_lists_process_subscribe_form_choices($choices, $this, $this->getEntity());
 }