You are here

public static function BootstrapDatepickerBase::defaultSettings in Bootstrap Datepicker 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

2 calls to BootstrapDatepickerBase::defaultSettings()
BootstrapDate::processBootstrapDate in src/Element/BootstrapDate.php
BootstrapDatepickerBase::settingsSummary in src/Plugin/Field/FieldWidget/BootstrapDatepickerBase.php
Returns a short summary for the current widget settings.

File

src/Plugin/Field/FieldWidget/BootstrapDatepickerBase.php, line 54

Class

BootstrapDatepickerBase
Base class for SingleDateTime widget types.

Namespace

Drupal\bootstrap_datepicker\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'assume_nearby_year' => FALSE,
    'autoclose' => FALSE,
    'container' => 'body',
    'calendar_weeks' => FALSE,
    'clear_btn' => FALSE,
    'toggle_active' => FALSE,
    'days_of_week_disabled' => [],
    'days_of_week_highlighted' => [],
    'dates_disabled' => '',
    'disable_touch_keyboard' => FALSE,
    'enable_on_readonly' => TRUE,
    'end_date_selection' => 'date',
    'end_date' => '31-12-2999',
    'end_date_timedelta' => '',
    'force_parse' => TRUE,
    'format' => '',
    'immediate_updates' => FALSE,
    'keep_empty_values' => FALSE,
    'keyboard_navigation' => TRUE,
    'language' => 'en',
    'min_view_mode' => '0',
    'max_view_mode' => '4',
    'multidate' => FALSE,
    'multidate_separator' => ',',
    'orientation' => 'auto',
    'rtl' => FALSE,
    'show_on_focus' => TRUE,
    'show_week_days' => TRUE,
    'start_date_selection' => 'date',
    'start_date' => '01-01-1000',
    'start_date_timedelta' => '',
    'start_view' => '0',
    'title' => '',
    'today_btn' => 'FALSE',
    'today_highlight' => FALSE,
    'update_view_date' => TRUE,
    'week_start' => '0',
    'z_index_offset' => 10,
  ] + parent::defaultSettings();
}