You are here

public static function FileUrlFormatter::defaultSettings in File URL 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldFormatter/FileUrlFormatter.php \Drupal\file_url\Plugin\Field\FieldFormatter\FileUrlFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/FileUrlFormatter.php, line 26

Class

FileUrlFormatter
Plugin implementation of the 'file_default' formatter.

Namespace

Drupal\file_url\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'mode' => 'link',
  ] + parent::defaultSettings();
}