You are here

public function AddMailchimpEventWebformHandler::getMailchimpEventProperty in Mailchimp 2.x

Ajax call to return the event_value part of the form.

Parameters

array $form: The form.

\Drupal\Core\Form\FormStateInterface $form_state: The form_state.

Return value

array The event_value part of the form.

File

modules/mailchimp_events/src/Plugin/WebformHandler/AddMailchimpEventWebformHandler.php, line 407

Class

AddMailchimpEventWebformHandler
Webform submission Event handler.

Namespace

Drupal\mailchimp_events\Plugin\WebformHandler

Code

public function getMailchimpEventProperty(array &$form, FormStateInterface $form_state) {

  // Return the prepared textfield.
  return $form['settings']['events']['event_value'];
}