You are here

public static function DateRangeAllDayCustomFormatter::defaultSettings in Date all day 8

Defines the default settings for this plugin.

Return value

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

Overrides DateRangeCustomFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/DateRangeAllDayCustomFormatter.php, line 30

Class

DateRangeAllDayCustomFormatter
Plugin implementation of the 'Custom' formatter for 'daterange' fields.

Namespace

Drupal\date_all_day\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'date_only_format' => 'date_all_day',
  ] + parent::defaultSettings();
}