public static function FileDownloadLinkMedia::defaultSettings in File Download Link 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
- modules/
file_downoad_link_media/ src/ Plugin/ Field/ FieldFormatter/ FileDownloadLinkMedia.php, line 98
Class
- FileDownloadLinkMedia
- Plugin implementation of the 'file_download_link_media' formatter.
Namespace
Drupal\file_download_link_media\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$options = parent::defaultSettings();
$options['link_text'] = 'Download';
$options['link_title'] = NULL;
$options['new_tab'] = TRUE;
$options['force_download'] = TRUE;
$options['custom_classes'] = '';
return $options;
}