public static function FileExtensionFormatter::defaultSettings in Drupal 9
Same name and namespace in other branches
- 8 core/modules/file/src/Plugin/Field/FieldFormatter/FileExtensionFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileExtensionFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides BaseFieldFileFormatterBase::defaultSettings
File
- core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileExtensionFormatter.php, line 25
Class
- FileExtensionFormatter
- Formatter to render a filename as file extension.
Namespace
Drupal\file\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$settings = parent::defaultSettings();
$settings['extension_detect_tar'] = FALSE;
return $settings;
}