protected function RecipientHandlerNewUsers::cacheCount in Simplenews 8.2
Same name and namespace in other branches
- 3.x 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\RecipientHandlerCode
protected function cacheCount() {
return TRUE;
}