public function SubscriptionManager::destruct in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Subscription/SubscriptionManager.php \Drupal\simplenews\Subscription\SubscriptionManager::destruct()
- 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\SubscriptionCode
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();
}