function LinkFormatter::defaultSettings

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

Overrides PluginSettingsBase::defaultSettings

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();
}

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