You are here

public function WebformScheduledEmailManagerInterface::ready in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_scheduled_email/src/WebformScheduledEmailManagerInterface.php \Drupal\webform_scheduled_email\WebformScheduledEmailManagerInterface::ready()

Get the number of emails ready to be sent during the next cron task.

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 ready to be sent.

1 method overrides WebformScheduledEmailManagerInterface::ready()
WebformScheduledEmailManager::ready in modules/webform_scheduled_email/src/WebformScheduledEmailManager.php
Get the number of emails ready to be sent during the next cron task.

File

modules/webform_scheduled_email/src/WebformScheduledEmailManagerInterface.php, line 350

Class

WebformScheduledEmailManagerInterface
Provides an interface for managing webform scheduled emails.

Namespace

Drupal\webform_scheduled_email

Code

public function ready(EntityInterface $entity = NULL, $handler_id = NULL);