You are here

public static function DownloadLinkFieldFormatter::defaultSettings in Media Entity Download 8.2

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides LinkFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/DownloadLinkFieldFormatter.php, line 31

Class

DownloadLinkFieldFormatter
Plugin implementation of the 'media_entity_download_download_link' formatter.

Namespace

Drupal\media_entity_download\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'disposition' => ResponseHeaderBag::DISPOSITION_ATTACHMENT,
  ] + parent::defaultSettings();
}