public static function AttributeHelper::allAtributes in Single DateTimePicker 8
List of all attributes - (for non single_datetime field types).
Return value
array Return all attributes.
File
- src/
AttributeHelper.php, line 51
Class
- AttributeHelper
- Class AttributeHelper.
Namespace
Drupal\single_datetimeCode
public static function allAtributes() {
return [
'data-hour-format' => 24,
'data-first-day' => \Drupal::config('system.date')
->get('first_day'),
'data-disable-days' => [],
'data-allow-seconds' => FALSE,
'data-allow-times' => 60,
'data-allowed-hours' => Json::encode(range(0, 23)),
'data-inline' => '0',
'data-mask' => FALSE,
'data-datetimepicker-theme' => 'default',
'data-single-date-time' => 'datetime',
'data-exclude-date' => '',
'data-start-date' => date('Y-m-d'),
'data-min-date' => date('Y-m-d H:i:s'),
'data-max-date' => date('Y-m-d H:i:s'),
'data-year-start' => '1970',
'data-year-end' => date('Y'),
];
}