public function WebformScheduledEmailManager::getDateFormat 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::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 131
Class
- WebformScheduledEmailManager
- Defines the webform scheduled email manager.
Namespace
Drupal\webform_scheduled_emailCode
public function getDateFormat() {
return $this
->getDateType() === 'datetime' ? 'Y-m-d H:i:s' : 'Y-m-d';
}