public function SpoolStorage::issueCountRecipients in Simplenews 8.2
Same name and namespace in other branches
- 3.x 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\SpoolCode
public function issueCountRecipients(ContentEntityInterface $issue) {
return $this
->getRecipientHandler($issue)
->count();
}