public function WebformScheduledEmailManager::queued in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_scheduled_email/src/WebformScheduledEmailManager.php \Drupal\webform_scheduled_email\WebformScheduledEmailManager::queued()
Get the number of emails queued but not ready to be sent.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: A webform, webform submission, or source entity.
string|null $handler_id: A webform handler id.
Return value
int The number of emails queued but not ready to be sent.
Overrides WebformScheduledEmailManagerInterface::queued
1 call to WebformScheduledEmailManager::queued()
- WebformScheduledEmailManager::stats in modules/
webform_scheduled_email/ src/ WebformScheduledEmailManager.php - Get all the handler's statistics.
File
- modules/
webform_scheduled_email/ src/ WebformScheduledEmailManager.php, line 765
Class
- WebformScheduledEmailManager
- Defines the webform scheduled email manager.
Namespace
Drupal\webform_scheduled_emailCode
public function queued(EntityInterface $entity = NULL, $handler_id = NULL) {
return $this
->total($entity, $handler_id, WebformScheduledEmailManagerInterface::SUBMISSION_QUEUED);
}