You are here

public function WebformScheduledEmailManager::hasScheduledEmail in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_scheduled_email/src/WebformScheduledEmailManager.php \Drupal\webform_scheduled_email\WebformScheduledEmailManager::hasScheduledEmail()

Determine if submission has scheduled email for specified handler.

Parameters

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

string $handler_id: The webform handler ID.

Return value

bool TRUE if submission has scheduled email.

Overrides WebformScheduledEmailManagerInterface::hasScheduledEmail

File

modules/webform_scheduled_email/src/WebformScheduledEmailManager.php, line 145

Class

WebformScheduledEmailManager
Defines the webform scheduled email manager.

Namespace

Drupal\webform_scheduled_email

Code

public function hasScheduledEmail(WebformSubmissionInterface $webform_submission, $handler_id) {
  return $this
    ->load($webform_submission, $handler_id) ? TRUE : FALSE;
}