You are here

public function WebformScheduledEmailManagerInterface::schedule 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::schedule()

Scheduled an email to be send at a later date.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: A webform or webform submission.

string $handler_id: The webform handler ID.

Return value

string|false The status of scheduled emails. FALSE if send date is invalid. (EMAIL_SCHEDULED, EMAIL_RESCHEDULED, or EMAIL_ALREADY_SCHEDULED)

1 method overrides WebformScheduledEmailManagerInterface::schedule()
WebformScheduledEmailManager::schedule in modules/webform_scheduled_email/src/WebformScheduledEmailManager.php
Scheduled an email to be send at a later date.

File

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

Class

WebformScheduledEmailManagerInterface
Provides an interface for managing webform scheduled emails.

Namespace

Drupal\webform_scheduled_email

Code

public function schedule(EntityInterface $entity, $handler_id);