public static function FileLinkClassFormatter::defaultSettings in Element Class Formatter 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides DescriptionAwareFileFormatterBase::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ FileLinkClassFormatter.php, line 29
Class
- FileLinkClassFormatter
- Plugin implementation of the 'file link with class' formatter.
Namespace
Drupal\element_class_formatter\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$default_settings = parent::defaultSettings() + [
'show_filesize' => '0',
'show_filetype' => '0',
];
return ElementClassTrait::elementClassDefaultSettings($default_settings);
}