public static function GeneralNumberWithMinMaxFormatter::defaultSettings in Formatter Suite 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides GeneralNumberFormatter::defaultSettings
1 call to GeneralNumberWithMinMaxFormatter::defaultSettings()
- GeneralNumberWithMinMaxFormatter::sanitizeSettings in src/
Plugin/ Field/ FieldFormatter/ GeneralNumberWithMinMaxFormatter.php - Sanitize settings to insure that they are safe and valid.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralNumberWithMinMaxFormatter.php, line 65
Class
- GeneralNumberWithMinMaxFormatter
- Formats with a variety of notation styles and includes field min/max.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array_merge([
'commonFormat' => 'N_out_of_MAX',
'customFormat' => '',
], parent::defaultSettings());
}