You are here

public static function FileDownloadUriFieldFormatter::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/FileDownloadUriFieldFormatter.php, line 27

Class

FileDownloadUriFieldFormatter
Plugin implementation of the "file_download_uri_formatter" formatter.

Namespace

Drupal\file_download\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $options = parent::defaultSettings();
  $options['absolute_url'] = FALSE;
  return $options;
}