function BaseFieldFileFormatterBase::defaultSettings

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

Overrides PluginSettingsBase::defaultSettings

4 calls to BaseFieldFileFormatterBase::defaultSettings()
DefaultFileFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/DefaultFileFormatter.php
Defines the default settings for this plugin.
FileExtensionFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FileExtensionFormatter.php
Defines the default settings for this plugin.
FilemimeFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FilemimeFormatter.php
Defines the default settings for this plugin.
FileUriFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php
Defines the default settings for this plugin.
4 methods override BaseFieldFileFormatterBase::defaultSettings()
DefaultFileFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/DefaultFileFormatter.php
Defines the default settings for this plugin.
FileExtensionFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FileExtensionFormatter.php
Defines the default settings for this plugin.
FilemimeFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FilemimeFormatter.php
Defines the default settings for this plugin.
FileUriFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.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.