You are here

public static function FieldTimerCountyFormatter::defaultSettings in Field Timer 2.x

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

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/FieldTimerCountyFormatter.php, line 51

Class

FieldTimerCountyFormatter
Plugin implementation of the 'field_timer_county' formatter.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [
    'animation' => static::ANIMATION_FADE,
    'speed' => 500,
    'theme' => static::COUNTY_THEME_BLUE,
    'background' => '',
    'reflection' => 1,
    'reflectionOpacity' => 0.2,
  ] + parent::defaultSettings();
  return $settings;
}