function BaseFieldFileFormatterBase::defaultSettings

Same name and namespace in other branches
  1. 10 core/modules/file/src/Plugin/Field/FieldFormatter/BaseFieldFileFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\BaseFieldFileFormatterBase::defaultSettings()
  2. 11.x core/modules/file/src/Plugin/Field/FieldFormatter/BaseFieldFileFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\BaseFieldFileFormatterBase::defaultSettings()
  3. 8.9.x core/modules/file/src/Plugin/Field/FieldFormatter/BaseFieldFileFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\BaseFieldFileFormatterBase::defaultSettings()
1 method overrides BaseFieldFileFormatterBase::defaultSettings()
FilemimeFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FilemimeFormatter.php
Defines the default settings for this plugin.

File

core/modules/file/src/Plugin/Field/FieldFormatter/BaseFieldFileFormatterBase.php, line 73

Class

BaseFieldFileFormatterBase
Base class for file formatters, which allow to link to the file download URL.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

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

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