public static function HMSNaturalLanguageFormatter::defaultSettings in HMS Field 8
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/ HMSNaturalLanguageFormatter.php, line 61 - Contains \Drupal\hms_field\Plugin\Field\FieldFormatter\HMSNaturalLanguageFormatter.
Class
- HMSNaturalLanguageFormatter
- Plugin implementation of the 'hms_natural_language_formatter' formatter.
Namespace
Drupal\hms_field\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array(
'display_formats' => array(
"w",
"d",
"h",
"m",
"s",
),
'separator' => ", ",
"last_separator" => " and ",
) + parent::defaultSettings();
}