You are here

public static function DurationHumanDisplayFormatter::defaultSettings in Duration Field 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/DurationHumanDisplayFormatter.php \Drupal\duration_field\Plugin\Field\FieldFormatter\DurationHumanDisplayFormatter::defaultSettings()
  2. 3.0.x src/Plugin/Field/FieldFormatter/DurationHumanDisplayFormatter.php \Drupal\duration_field\Plugin\Field\FieldFormatter\DurationHumanDisplayFormatter::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/DurationHumanDisplayFormatter.php, line 106

Class

DurationHumanDisplayFormatter
Provides a formatter for the duration field type.

Namespace

Drupal\duration_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'text_length' => 'full',
    'separator' => 'space',
  ] + parent::defaultSettings();
}