You are here

function mailchimp_ecommerce_get_campaign_id in Mailchimp E-Commerce 8

Same name and namespace in other branches
  1. 7 mailchimp_ecommerce.module \mailchimp_ecommerce_get_campaign_id()

Gets the campaign ID from the current user's session.

Return value

string The campaign ID.

1 call to mailchimp_ecommerce_get_campaign_id()
OrderHandler::addOrder in src/OrderHandler.php
@inheritdoc

File

./mailchimp_ecommerce.module, line 45
Mailchimp eCommerce core functionality.

Code

function mailchimp_ecommerce_get_campaign_id() {
  return \Drupal::service('mailchimp_ecommerce.helper')
    ->getCampaignId();
}