You are here

public static function WebformDateHelper::getDaysOfWeek in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Utility/WebformDateHelper.php \Drupal\webform\Utility\WebformDateHelper::getDaysOfWeek()

Get days of the week.

Return value

array Associative array of days of the week.

File

src/Utility/WebformDateHelper.php, line 79

Class

WebformDateHelper
Helper class webform date helper methods.

Namespace

Drupal\webform\Utility

Code

public static function getDaysOfWeek() {
  return [
    '0' => t('Sunday'),
    '1' => t('Monday'),
    '2' => t('Tuesday'),
    '3' => t('Wednesday'),
    '4' => t('Thursday'),
    '5' => t('Friday'),
    '6' => t('Saturday'),
  ];
}