public static function LinkAllyFormatter::defaultSettings in Element Class Formatter 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ LinkAllyFormatter.php, line 50
Class
- LinkAllyFormatter
- Defines a formatter that allows links with screenreader only text.
Namespace
Drupal\element_class_formatter\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$default_settings = parent::defaultSettings() + [
'link_text' => '',
'screenreader_text' => '',
'tag' => '',
];
return ElementClassTrait::elementClassDefaultSettings($default_settings);
}