You are here

protected function RecipientHandlerSiteMail::doCount in Simplenews 8.2

Same name and namespace in other branches
  1. 3.x 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;
}