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