You are here

public function MailchimpEcommerceHelper::validateCustomer in Mailchimp E-Commerce 8

Determines if customer data is valid.

Parameters

array $customer: Array of customer data.

Return value

bool TRUE if customer data is valid.

File

src/MailchimpEcommerceHelper.php, line 87

Class

MailchimpEcommerceHelper
Class MailchimpEcommerceHelper.

Namespace

Drupal\mailchimp_ecommerce

Code

public function validateCustomer(array $customer) {
  return isset($customer['id']) && !empty($customer['id']);
}