public function EmailQueue::destruct in Search API Saved Searches 8
Performs destruct operations.
Overrides DestructableInterface::destruct
File
- src/
Service/ EmailQueue.php, line 52
Class
- EmailQueue
- Provides functionality for sending e-mails at the end of the page request.
Namespace
Drupal\search_api_saved_searches\ServiceCode
public function destruct() {
foreach ($this->mails as $i => $args) {
call_user_func_array([
$this->mail,
'mail',
], $args);
unset($this->mails[$i]);
}
}