public static function FractionFormatterBase::defaultSettings in Fraction 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldFormatter/FractionFormatterBase.php \Drupal\fraction\Plugin\Field\FieldFormatter\FractionFormatterBase::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 FractionFormatterBase::defaultSettings()
- FractionDecimalFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ FractionDecimalFormatter.php - Defines the default settings for this plugin.
- FractionFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ FractionFormatter.php - Defines the default settings for this plugin.
2 methods override FractionFormatterBase::defaultSettings()
- FractionDecimalFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ FractionDecimalFormatter.php - Defines the default settings for this plugin.
- FractionFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ FractionFormatter.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldFormatter/ FractionFormatterBase.php, line 19
Class
- FractionFormatterBase
- Base class for fraction formatters.
Namespace
Drupal\fraction\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'prefix_suffix' => FALSE,
] + parent::defaultSettings();
}