public static function LinkSeparateFormatter::defaultSettings in Drupal 8
Same name and namespace in other branches
- 9 core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php \Drupal\link\Plugin\Field\FieldFormatter\LinkSeparateFormatter::defaultSettings()
- 10 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\FieldFormatterCode
public static function defaultSettings() {
return [
'trim_length' => 80,
'rel' => '',
'target' => '',
] + parent::defaultSettings();
}