You are here

public static function JsTimerDefaultFormatter::defaultSettings in Javascript Timer 8

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/JsTimerDefaultFormatter.php, line 28

Class

JsTimerDefaultFormatter
Plugin implementation of the 'JsTimer' formatter for 'datetime' fields.

Namespace

Drupal\jstimer\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = array(
    'dir' => 'down',
    'format_txt' => '',
  ) + parent::defaultSettings();
  return $settings;
}