You are here

public function WebformScheduledEmailManager::getDateFormat in Webform 8.5

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

Get scheduled email date format (Y-m-d or Y-m-d H:i:s).

Return value

string Scheduled email date format (Y-m-d or Y-m-d H:i:s).

Overrides WebformScheduledEmailManagerInterface::getDateFormat

1 call to WebformScheduledEmailManager::getDateFormat()
WebformScheduledEmailManager::getSendDate in modules/webform_scheduled_email/src/WebformScheduledEmailManager.php
Get a webform submission's send date.

File

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

Class

WebformScheduledEmailManager
Defines the webform scheduled email manager.

Namespace

Drupal\webform_scheduled_email

Code

public function getDateFormat() {
  return $this
    ->getDateType() === 'datetime' ? 'Y-m-d H:i:s' : 'Y-m-d';
}