You are here

public function SpoolStorageInterface::countMails in Simplenews 3.x

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

Count data in mail spool table.

Parameters

array $conditions: (Optional) Array of conditions which are applied to the query. If not set, status defaults to SpoolStorageInterface::STATUS_PENDING, SpoolStorageInterface::STATUS_IN_PROGRESS.

Return value

int Count of mail spool elements of the passed in arguments.

1 method overrides SpoolStorageInterface::countMails()
SpoolStorage::countMails in src/Spool/SpoolStorage.php
Count data in mail spool table.

File

src/Spool/SpoolStorageInterface.php, line 90

Class

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

Namespace

Drupal\simplenews\Spool

Code

public function countMails(array $conditions = []);