You are here

public static function FieldTimerCountdownFormatter::defaultSettings in Field Timer 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatter.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerCountdownFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides FieldTimerCountdownFormatterBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatter.php, line 70

Class

FieldTimerCountdownFormatter
Plugin implementation of the 'field_timer_countdown' formatter.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [
    'use_system_language' => FALSE,
    'regional' => 'en',
    'format' => 'dHMS',
    'layout' => '',
    'compact' => 0,
    'significant' => 0,
    'timeSeparator' => ':',
    'padZeroes' => 0,
  ] + parent::defaultSettings();
  return $settings;
}