protected function RecipientHandlerEntityBase::doCount in Simplenews 8.2
Same name and namespace in other branches
- 3.x src/Plugin/simplenews/RecipientHandler/RecipientHandlerEntityBase.php \Drupal\simplenews\Plugin\simplenews\RecipientHandler\RecipientHandlerEntityBase::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
- src/
Plugin/ simplenews/ RecipientHandler/ RecipientHandlerEntityBase.php, line 24
Class
- RecipientHandlerEntityBase
- Base for Recipient Handler classes based on EntityQuery.
Namespace
Drupal\simplenews\Plugin\simplenews\RecipientHandlerCode
protected function doCount() {
return $this
->buildEntityQuery()
->count()
->execute();
}