public function WebformScheduledEmailManager::getDateFormatLabel in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_scheduled_email/src/WebformScheduledEmailManager.php \Drupal\webform_scheduled_email\WebformScheduledEmailManager::getDateFormatLabel()
Get scheduled email date format label (YYYY-DD-MM or YYYY-DD-MM HH:MM:SS).
Return value
string Scheduled email date format label (YYYY-DD-MM or YYYY-DD-MM HH:MM:SS).
Overrides WebformScheduledEmailManagerInterface::getDateFormatLabel
File
- modules/
webform_scheduled_email/ src/ WebformScheduledEmailManager.php, line 140
Class
- WebformScheduledEmailManager
- Defines the webform scheduled email manager.
Namespace
Drupal\webform_scheduled_emailCode
public function getDateFormatLabel() {
return $this
->getDateType() === 'datetime' ? 'YYYY-MM-DD HH:MM:SS' : 'YYYY-MM-DD';
}