function mailchimp_ecommerce_validate_customer in Mailchimp E-Commerce 8
Same name and namespace in other branches
- 7 mailchimp_ecommerce.module \mailchimp_ecommerce_validate_customer()
Determines if customer data is valid.
Parameters
array $customer: Array of customer data.
Return value
bool TRUE if customer data is valid.
1 call to mailchimp_ecommerce_validate_customer()
- OrderHandler::addOrder in src/
OrderHandler.php - @inheritdoc
File
- ./
mailchimp_ecommerce.module, line 68 - Mailchimp eCommerce core functionality.
Code
function mailchimp_ecommerce_validate_customer(array $customer) {
return \Drupal::service('mailchimp_ecommerce.helper')
->validateCustomer($customer);
}