You are here

protected function RecipientHandlerNewUsers::cacheCount in Simplenews 3.x

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

Checks if the recipient count can be cached.

Caching is allowed if the count depends only on the newsletter IDs, and does not vary with a specific issue or handler settings.

Return value

bool TRUE if the count can be cached.

Overrides RecipientHandlerBase::cacheCount

File

modules/simplenews_demo/src/Plugin/simplenews/RecipientHandler/RecipientHandlerNewUsers.php, line 30

Class

RecipientHandlerNewUsers
This handler sends to all active users that have never logged in.

Namespace

Drupal\simplenews_demo\Plugin\simplenews\RecipientHandler

Code

protected function cacheCount() {
  return TRUE;
}