You are here

public static function AttributeHelper::allElementAttributes in Single DateTimePicker 8

All attributes for single_datetime field type.

Return value

array Return formatted array.

File

src/AttributeHelper.php, line 78

Class

AttributeHelper
Class AttributeHelper.

Namespace

Drupal\single_datetime

Code

public static function allElementAttributes() {
  return [
    '#hour_format' => 24,
    '#first_day' => \Drupal::config('system.date')
      ->get('first_day'),
    '#disable_days' => [],
    '#allow_seconds' => FALSE,
    '#allow_times' => 60,
    '#allowed_hours' => Json::encode(range(0, 23)),
    '#inline' => '0',
    '#mask' => FALSE,
    '#datetimepicker_theme' => 'default',
    '#single_date_time' => 'datetime',
    '#exclude_date' => '',
    '#start_date' => '',
    '#min_date' => '',
    '#max_date' => '',
    '#year_start' => '1970',
    '#year_end' => date('Y'),
  ];
}