function FileExtensionFormatter::defaultSettings

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

Overrides BaseFieldFileFormatterBase::defaultSettings

File

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

Class

FileExtensionFormatter
Formatter to render a filename as file extension.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

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

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