Log in
Interface

SubscriptionManagerInterface

Magento\Newsletter\Model\SubscriptionManagerInterface

What it does

This interface defines the contract for managing newsletter subscription operations in Magento 2.

Developers implement or use this interface to subscribe or unsubscribe users from newsletters, either by email address for guests or by customer ID for registered customers.

It provides a standardized API for handling newsletter subscription status changes across different store views.

Public Methods

  • subscribe()
  • unsubscribe()
  • subscribeCustomer()
  • unsubscribeCustomer()