public static function SingleDateTimeBase::defaultSettings in Single DateTimePicker 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ SingleDateTimeBase.php, line 51
Class
- SingleDateTimeBase
- Base class for SingleDateTime widget types.
Namespace
Drupal\single_datetime\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'hour_format' => '24h',
'allow_seconds' => FALSE,
'allow_times' => '15',
'allowed_hours' => '',
'disable_days' => [],
'exclude_date' => '',
'inline' => FALSE,
'mask' => FALSE,
'datetimepicker_theme' => 'default',
'start_date' => '',
'min_date' => '',
'max_date' => '',
'year_start' => '',
'year_end' => '',
'allow_blank' => FALSE,
];
}