function DateHelper::weekDaysUntranslated

Same name in other branches
  1. 9 core/lib/Drupal/Core/Datetime/DateHelper.php \Drupal\Core\Datetime\DateHelper::weekDaysUntranslated()
  2. 8.9.x core/lib/Drupal/Core/Datetime/DateHelper.php \Drupal\Core\Datetime\DateHelper::weekDaysUntranslated()
  3. 10 core/lib/Drupal/Core/Datetime/DateHelper.php \Drupal\Core\Datetime\DateHelper::weekDaysUntranslated()

Constructs an untranslated array of week days.

Return value

array An array of week day names

1 call to DateHelper::weekDaysUntranslated()
DateHelperTest::testWeekDaysOrdered in core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
@covers ::weekDaysOrdered @dataProvider providerTestWeekDaysOrdered

File

core/lib/Drupal/Core/Datetime/DateHelper.php, line 139

Class

DateHelper
Defines Gregorian Calendar date values.

Namespace

Drupal\Core\Datetime

Code

public static function weekDaysUntranslated() {
    return [
        'Sunday',
        'Monday',
        'Tuesday',
        'Wednesday',
        'Thursday',
        'Friday',
        'Saturday',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.