function FileUriFormatter::defaultSettings

Same name in other branches
  1. 9 core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileUriFormatter::defaultSettings()
  2. 10 core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileUriFormatter::defaultSettings()
  3. 11.x core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileUriFormatter::defaultSettings()

Overrides BaseFieldFileFormatterBase::defaultSettings

File

core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php, line 26

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.