You are here

public static function CalendarHelper::untranslatedDays in Calendar 8

An array of untranslated day name abbreviations.

The abbreviations are forced to lowercase and ordered appropriately for the site setting for the first day of week.

Return value

array The untranslated day abbreviation is used in css classes.

2 calls to CalendarHelper::untranslatedDays()
Calendar::calendarBuildMiniWeek in src/Plugin/views/style/Calendar.php
Build one mini week row.
CalendarHelper::weekHeader in src/CalendarHelper.php
Formats the weekday information into a table header format.

File

src/CalendarHelper.php, line 68

Class

CalendarHelper
Defines Gregorian Calendar date values.

Namespace

Drupal\calendar

Code

public static function untranslatedDays() {
  $untranslated_days = self::weekDaysOrdered(DateHelper::weekDaysUntranslated());
  foreach ($untranslated_days as $delta => $day) {
    $untranslated_days[$delta] = strtolower(substr($day, 0, 3));
  }
  return $untranslated_days;
}