You are here

public static function FieldTimerCountdownLedFormatter::defaultSettings in Field Timer 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/FieldTImerCountdownLedFormatter.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerCountdownLedFormatter::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/FieldTImerCountdownLedFormatter.php, line 45

Class

FieldTimerCountdownLedFormatter
Plugin implementation of the 'field_timer_countdown' formatter.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [
    'countdown_theme' => static::LED_THEME_GREEN,
    'max_count_of_days' => static::LED_DAY_DIGITS_TWO,
    'display_days' => 1,
    'display_hours' => 1,
    'display_minutes' => 1,
    'display_seconds' => 1,
  ] + parent::defaultSettings();
  return $settings;
}