public static function RangeFormatterBase::defaultSettings in Range 8
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 RangeFormatterBase::defaultSettings()
- RangeIntegerFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ RangeIntegerFormatter.php - Defines the default settings for this plugin.
- RangeIntegerSprintfFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ RangeIntegerSprintfFormatter.php - Defines the default settings for this plugin.
2 methods override RangeFormatterBase::defaultSettings()
- RangeIntegerFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ RangeIntegerFormatter.php - Defines the default settings for this plugin.
- RangeIntegerSprintfFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ RangeIntegerSprintfFormatter.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldFormatter/ RangeFormatterBase.php, line 19
Class
- RangeFormatterBase
- Parent plugin for decimal and integer range formatters.
Namespace
Drupal\range\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'range_separator' => '-',
'range_combine' => TRUE,
'field_prefix_suffix' => FALSE,
'from_prefix_suffix' => FALSE,
'to_prefix_suffix' => FALSE,
'combined_prefix_suffix' => FALSE,
] + parent::defaultSettings();
}