You are here

protected function RecipientHandlerSiteMail::doCount in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 modules/simplenews_demo/src/Plugin/simplenews/RecipientHandler/RecipientHandlerSiteMail.php \Drupal\simplenews_demo\Plugin\simplenews\RecipientHandler\RecipientHandlerSiteMail::doCount()

Counts the number of recipients.

Internal count function allowing the caller to perform caching.

Return value

int Number of recipients.

Overrides RecipientHandlerBase::doCount

File

modules/simplenews_demo/src/Plugin/simplenews/RecipientHandler/RecipientHandlerSiteMail.php, line 29

Class

RecipientHandlerSiteMail
Recipient Handler that sends to the main site mail.

Namespace

Drupal\simplenews_demo\Plugin\simplenews\RecipientHandler

Code

protected function doCount() {
  return 1;
}