public static function FieldTimerCountdownLedFormatter::defaultSettings in Field Timer 2.x
Same name and namespace in other branches
- 8 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\FieldFormatterCode
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;
}