function LinkSeparateFormatter::defaultSettings

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

Overrides LinkFormatter::defaultSettings

File

core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php, line 29

Class

LinkSeparateFormatter
Plugin implementation of the 'link_separate' formatter.

Namespace

Drupal\link\Plugin\Field\FieldFormatter

Code

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

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