You are here

public static function PersianDateTimeDatelistWidget::defaultSettings in Persian Date for Drupal 8 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/Field/FieldWidget/PersianDateTimeDatelistWidget.php \Drupal\persian_date\Plugin\Field\FieldWidget\PersianDateTimeDatelistWidget::defaultSettings()

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/PersianDateTimeDatelistWidget.php, line 24

Class

PersianDateTimeDatelistWidget
Plugin implementation of the 'datetime_datelist' widget.

Namespace

Drupal\persian_date\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'increment' => '15',
    'date_order' => 'YMD',
    'time_type' => '24',
  ] + parent::defaultSettings();
}