You are here

webform_mailchimp.api.php in Webform Mailchimp 8.5

Webform mailchimp module hook definitions.

File

webform_mailchimp.api.php
View source
<?php

/**
 * @file
 * Webform mailchimp module hook definitions.
 */
use Drupal\webform\Plugin\WebformHandlerInterface;
use Drupal\webform\WebformSubmissionInterface;

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Alter mergevars before they are sent to Mailchimp.
 *
 * @param array $mergevars
 *   The current mergevars.
 * @param WebformSubmissionInterface $submission
 *   The webform submission entity used to populate the mergevars.
 * @param WebformHandlerInterface $handler
 *   The webform submission handler used to populate the mergevars.
 *
 * @ingroup webform_mailchimp
 */
function hook_webform_mailchimp_lists_mergevars_alter(&$mergevars, WebformSubmissionInterface $submission, WebformHandlerInterface $handler) {
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_webform_mailchimp_lists_mergevars_alter Alter mergevars before they are sent to Mailchimp.