NewsletterSubscriptionServiceInterface
in
Interface NewsletterSubscriptionServiceInterface
Tags
Table of Contents
- getSubscriptionByCustomerEmail() : bool|NewsletterSubscription
- Gets the newsletter subscription data by a given customer ID.
- unsubscribe() : mixed
- Unsubscribes a customer from the newsletter.
Methods
getSubscriptionByCustomerEmail()
Gets the newsletter subscription data by a given customer ID.
public
getSubscriptionByCustomerEmail(CustomerEmailInterface $email) : bool|NewsletterSubscription
Parameters
- $email : CustomerEmailInterface
Return values
bool|NewsletterSubscription —unsubscribe()
Unsubscribes a customer from the newsletter.
public
unsubscribe(CustomerEmailInterface $email) : mixed
Parameters
- $email : CustomerEmailInterface