You are here

function SpoolStorageInterface::clear in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Spool/SpoolStorageInterface.php \Drupal\simplenews\Spool\SpoolStorageInterface::clear()
  2. 3.x src/Spool/SpoolStorageInterface.php \Drupal\simplenews\Spool\SpoolStorageInterface::clear()

Remove old records from mail spool table.

All records with status 'send' and time stamp before the expiration date are removed from the spool.

Return value

int Number of deleted spool rows.

1 method overrides SpoolStorageInterface::clear()
SpoolStorage::clear in src/Spool/SpoolStorage.php
Remove old records from mail spool table.

File

src/Spool/SpoolStorageInterface.php, line 97

Class

SpoolStorageInterface
The spool storage manages a queue of mails that need to be sent.

Namespace

Drupal\simplenews\Spool

Code

function clear();