You are here

public static function LinkSeparateFormatter::defaultSettings in Drupal 10

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

Defines the default settings for this plugin.

Return value

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

Overrides LinkFormatter::defaultSettings

File

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

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