You are here

public static function FieldTimerCountdownFormatterBase::defaultSettings in Field Timer 8

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

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

2 calls to FieldTimerCountdownFormatterBase::defaultSettings()
FieldTimerCountdownFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatter.php
Defines the default settings for this plugin.
FieldTimerCountdownLedFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/FieldTImerCountdownLedFormatter.php
Defines the default settings for this plugin.
2 methods override FieldTimerCountdownFormatterBase::defaultSettings()
FieldTimerCountdownFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatter.php
Defines the default settings for this plugin.
FieldTimerCountdownLedFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/FieldTImerCountdownLedFormatter.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldFormatter/FieldTimerCountdownFormatterBase.php, line 63

Class

FieldTimerCountdownFormatterBase
Base implementation of formatters that uses jQuery Countdown plugin.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [
    'type' => static::TYPE_AUTO,
  ] + parent::defaultSettings();
  return $settings;
}