You are here

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

Same name and namespace in other branches
  1. 3.1.x modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php \Drupal\smart_date_recur\Plugin\Field\FieldFormatter\SmartDateDailyRangeFormatter::defaultSettings()
  2. 3.2.x modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php \Drupal\smart_date_recur\Plugin\Field\FieldFormatter\SmartDateDailyRangeFormatter::defaultSettings()
  3. 3.3.x modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php \Drupal\smart_date_recur\Plugin\Field\FieldFormatter\SmartDateDailyRangeFormatter::defaultSettings()
  4. 3.4.x modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php \Drupal\smart_date_recur\Plugin\Field\FieldFormatter\SmartDateDailyRangeFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides SmartDateDefaultFormatter::defaultSettings

File

modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php, line 33

Class

SmartDateDailyRangeFormatter
Plugin for a recurrence-optimized formatter for 'smartdate' fields.

Namespace

Drupal\smart_date_recur\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'past_display' => '2',
    'upcoming_display' => '2',
  ] + parent::defaultSettings();
}