You are here

public static function FileDownloadLink::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

src/Plugin/Field/FieldFormatter/FileDownloadLink.php, line 112

Class

FileDownloadLink
Plugin implementation of the 'file_download_link' formatter.

Namespace

Drupal\file_download_link\Plugin\Field\FieldFormatter

Code

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;
}