You are here

public static function FileUriFormatter::defaultSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileUriFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides BaseFieldFileFormatterBase::defaultSettings

File

core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php, line 30
Contains \Drupal\file\Plugin\Field\FieldFormatter\FileUriFormatter.

Class

FileUriFormatter
Formatter to render the file URI to its download path.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

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