You are here

public function SubscriptionManagerInterface::getChangesList in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Subscription/SubscriptionManagerInterface.php \Drupal\simplenews\Subscription\SubscriptionManagerInterface::getChangesList()

Converts an array of subscription changes into descriptions.

Parameters

\Drupal\simplenews\SubscriberInterface $subscriber: Simplenews subscriber object.

array $changes: (Optional) Array of changes, each is an array with the keys action and newsletter_id. Defaults to $subscriber->getChanges(), which contains the currently saved changes for the subscriber.

string $langcode: (Optional) Specify the language of the description strings, defaults to the current language.

Return value

string[] Array of description strings describing the changes.

1 method overrides SubscriptionManagerInterface::getChangesList()
SubscriptionManager::getChangesList in src/Subscription/SubscriptionManager.php
Converts an array of subscription changes into descriptions.

File

src/Subscription/SubscriptionManagerInterface.php, line 102

Class

SubscriptionManagerInterface
Subscription management; subscribe, unsubscribe and get subscription status.

Namespace

Drupal\simplenews\Subscription

Code

public function getChangesList(SubscriberInterface $subscriber, array $changes = NULL, $langcode = NULL);