public static function LinkFormatter::defaultSettings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 85 - Contains \Drupal\link\Plugin\Field\FieldFormatter\LinkFormatter.
Class
- LinkFormatter
- Plugin implementation of the 'link' formatter.
Namespace
Drupal\link\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array(
'trim_length' => '80',
'url_only' => '',
'url_plain' => '',
'rel' => '',
'target' => '',
) + parent::defaultSettings();
}