You are here

public static function DateRecurDefaultFormatter::defaultSettings in Recurring Dates Field 8

Defines the default settings for this plugin.

Return value

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

Overrides DateRangeDefaultFormatter::defaultSettings

File

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

Class

DateRecurDefaultFormatter
Plugin implementation of the 'date_recur_default_formatter' formatter.

Namespace

Drupal\date_recur\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    // Implement default settings.
    'show_rrule' => TRUE,
    'show_next' => 5,
    'occurrence_format_type' => 'medium',
    'same_end_date_format_type' => 'medium',
    'count_per_item' => TRUE,
  ] + parent::defaultSettings();
}