You are here

public function SubscriptionManager::destruct in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Subscription/SubscriptionManager.php \Drupal\simplenews\Subscription\SubscriptionManager::destruct()
  2. 3.x src/Subscription/SubscriptionManager.php \Drupal\simplenews\Subscription\SubscriptionManager::destruct()

Performs destruct operations.

Overrides DestructableInterface::destruct

File

src/Subscription/SubscriptionManager.php, line 287

Class

SubscriptionManager
Default subscription manager.

Namespace

Drupal\simplenews\Subscription

Code

public function destruct() {

  // Ensure that confirmations are always sent even if API calls did not do it
  // explicitly. It is still possible to do so, e.g. to be able to know if
  // confirmations were sent or not.
  $this
    ->sendConfirmations();
}