You are here

public function SpoolStorage::issueCountRecipients in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Spool/SpoolStorage.php \Drupal\simplenews\Spool\SpoolStorage::issueCountRecipients()

Returns a count of the recipients for a newsletter issue.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $issue: The newsletter issue entity.

Return value

int Count of recipients.

Overrides SpoolStorageInterface::issueCountRecipients

1 call to SpoolStorage::issueCountRecipients()
SpoolStorage::issueSummary in src/Spool/SpoolStorage.php
Returns a summary of key newsletter issue parameters.

File

src/Spool/SpoolStorage.php, line 361

Class

SpoolStorage
Default database spool storage.

Namespace

Drupal\simplenews\Spool

Code

public function issueCountRecipients(ContentEntityInterface $issue) {
  return $this
    ->getRecipientHandler($issue)
    ->count();
}