public static function FileDownloadFieldFormatter::defaultSettings in File Download 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/ FileDownloadFieldFormatter.php, line 25
Class
- FileDownloadFieldFormatter
- Plugin annotation @FieldFormatter( id = "file_download_formatter", label = @Translation("File Download"), field_types = { "file", "image" } )
Namespace
Drupal\file_download\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$options = parent::defaultSettings();
$options['link_title'] = 'file';
$options['custom_title_text'] = '';
$options['file_size'] = 0;
return $options;
}