public static function OfficeHoursDateHelper::getFirstDay in Office Hours 8
Gets the day number of first day of the week.
Return value
int Returns the number.
2 calls to OfficeHoursDateHelper::getFirstDay()
- OfficeHoursDateHelper::weekDaysOrdered in src/
OfficeHoursDateHelper.php - Reorders weekdays to match the first day of the week.
- OfficeHoursList::getDefaultOperations in src/
Element/ OfficeHoursList.php - Gets this list element's default operations.
File
- src/
OfficeHoursDateHelper.php, line 21
Class
- OfficeHoursDateHelper
- Defines lots of helpful functions for use in massaging dates.
Namespace
Drupal\office_hoursCode
public static function getFirstDay() {
return \Drupal::config('system.date')
->get('first_day');
}