You are here

public static function LinkFormatter::defaultSettings in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php \Drupal\link\Plugin\Field\FieldFormatter\LinkFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

1 call to LinkFormatter::defaultSettings()
LinkSeparateFormatter::defaultSettings in core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php
Defines the default settings for this plugin.
1 method overrides LinkFormatter::defaultSettings()
LinkSeparateFormatter::defaultSettings in core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php
Defines the default settings for this plugin.

File

core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php, line 80

Class

LinkFormatter
Plugin implementation of the 'link' formatter.

Namespace

Drupal\link\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'trim_length' => '80',
    'url_only' => '',
    'url_plain' => '',
    'rel' => '',
    'target' => '',
  ] + parent::defaultSettings();
}