public static function FileUrlFormatter::defaultSettings in File URL 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/FileUrlFormatter.php \Drupal\file_url\Plugin\Field\FieldFormatter\FileUrlFormatter::defaultSettings()
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/ FileUrlFormatter.php, line 26
Class
- FileUrlFormatter
- Plugin implementation of the 'file_default' formatter.
Namespace
Drupal\file_url\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'mode' => 'link',
] + parent::defaultSettings();
}