You are here

protected function AddMailchimpEventWebformHandler::getEmail in Mailchimp 2.x

Finds the the email to send.

Return value

string The email value.

1 call to AddMailchimpEventWebformHandler::getEmail()
AddMailchimpEventWebformHandler::postSave in modules/mailchimp_events/src/Plugin/WebformHandler/AddMailchimpEventWebformHandler.php
Acts on a saved webform submission before the insert or update hook is invoked.

File

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

Class

AddMailchimpEventWebformHandler
Webform submission Event handler.

Namespace

Drupal\mailchimp_events\Plugin\WebformHandler

Code

protected function getEmail() {
  return $this
    ->replaceTokens($this->configuration['email'], $this
    ->getWebformSubmission(), [], [
    'clear' => TRUE,
  ]);
}