You are here

public function RecipientHandlerBase::count in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php \Drupal\simplenews\Plugin\simplenews\RecipientHandler\RecipientHandlerBase::count()
  2. 3.x src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php \Drupal\simplenews\Plugin\simplenews\RecipientHandler\RecipientHandlerBase::count()

Implements Countable::count().

File

src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php, line 68

Class

RecipientHandlerBase
Base class for all Recipient Handler classes.

Namespace

Drupal\simplenews\Plugin\simplenews\RecipientHandler

Code

public function count() {
  return $this
    ->buildRecipientCountQuery()
    ->execute()
    ->fetchField();
}