You are here

public function SubscriptionManager::destruct in Simplenews 3.x

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

Performs destruct operations.

Overrides DestructableInterface::destruct

File

src/Subscription/SubscriptionManager.php, line 249

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();
}