You are here

public function WebformScheduledEmailManager::getDateFormatLabel 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::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 138

Class

WebformScheduledEmailManager
Defines the webform scheduled email manager.

Namespace

Drupal\webform_scheduled_email

Code

public function getDateFormatLabel() {
  return $this
    ->getDateType() === 'datetime' ? 'YYYY-MM-DD HH:MM:SS' : 'YYYY-MM-DD';
}