You are here

public static function SmartDateDefaultFormatter::defaultSettings in Smart Date 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/SmartDateDefaultFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateDefaultFormatter::defaultSettings()
  2. 8 src/Plugin/Field/FieldFormatter/SmartDateDefaultFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateDefaultFormatter::defaultSettings()
  3. 3.x src/Plugin/Field/FieldFormatter/SmartDateDefaultFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateDefaultFormatter::defaultSettings()
  4. 3.1.x src/Plugin/Field/FieldFormatter/SmartDateDefaultFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateDefaultFormatter::defaultSettings()
  5. 3.2.x src/Plugin/Field/FieldFormatter/SmartDateDefaultFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateDefaultFormatter::defaultSettings()
  6. 3.3.x src/Plugin/Field/FieldFormatter/SmartDateDefaultFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateDefaultFormatter::defaultSettings()
  7. 3.4.x src/Plugin/Field/FieldFormatter/SmartDateDefaultFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateDefaultFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides DateTimeDefaultFormatter::defaultSettings

3 calls to SmartDateDefaultFormatter::defaultSettings()
SmartDateDailyRangeFormatter::defaultSettings in modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php
Defines the default settings for this plugin.
SmartDateDurationFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/SmartDateDurationFormatter.php
Defines the default settings for this plugin.
SmartDateRecurrenceFormatter::defaultSettings in modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateRecurrenceFormatter.php
Defines the default settings for this plugin.
3 methods override SmartDateDefaultFormatter::defaultSettings()
SmartDateDailyRangeFormatter::defaultSettings in modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php
Defines the default settings for this plugin.
SmartDateDurationFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/SmartDateDurationFormatter.php
Defines the default settings for this plugin.
SmartDateRecurrenceFormatter::defaultSettings in modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateRecurrenceFormatter.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldFormatter/SmartDateDefaultFormatter.php, line 34

Class

SmartDateDefaultFormatter
Plugin implementation of the 'Default' formatter for 'smartdate' fields.

Namespace

Drupal\smart_date\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'format' => 'default',
    'force_chronological' => 0,
    'add_classes' => 0,
  ] + parent::defaultSettings();
}