public static function FilemimeFormatter::defaultSettings in Drupal 10
Same name and namespace in other branches
- 8 core/modules/file/src/Plugin/Field/FieldFormatter/FilemimeFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FilemimeFormatter::defaultSettings()
- 9 core/modules/file/src/Plugin/Field/FieldFormatter/FilemimeFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FilemimeFormatter::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/ FilemimeFormatter.php, line 32
Class
- FilemimeFormatter
- Formatter to render the file MIME type, with an optional icon.
Namespace
Drupal\file\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$settings = parent::defaultSettings();
$settings['filemime_image'] = FALSE;
return $settings;
}