public static DateHelper::weekDaysOrdered($weekdays)
Reorders weekdays to match the first day of the week.
Parameters
array $weekdays: An array of weekdays.
Return value
array An array of weekdays reordered to match the first day of the week. The keys will remain unchanged. For example, if the first day of the week is set to be Monday, the array keys will be [1, 2, 3, 4, 5, 6, 0].
File
core/lib/Drupal/Core/Datetime/DateHelper.php, line 258
Class
DateHelper Defines Gregorian Calendar date