You are here

public static function FileDownloadLinkFormatter::defaultSettings in File Entity (fieldable files) 8.2

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/FileDownloadLinkFormatter.php, line 132

Class

FileDownloadLinkFormatter
Plugin implementation of the 'file_download_link' formatter.

Namespace

Drupal\file_entity\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'access_message' => "You don't have access to download this file.",
    'text' => 'Download [file:name]',
  ] + parent::defaultSettings();
}