public static function WebformEntityReferenceLinkFormatter::defaultSettings in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/Field/FieldFormatter/WebformEntityReferenceLinkFormatter.php \Drupal\webform\Plugin\Field\FieldFormatter\WebformEntityReferenceLinkFormatter::defaultSettings()
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/ WebformEntityReferenceLinkFormatter.php, line 107
Class
- WebformEntityReferenceLinkFormatter
- Plugin implementation of the 'Link to webform' formatter.
Namespace
Drupal\webform\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'label' => 'Go to [webform:title] webform',
'dialog' => '',
'attributes' => [],
] + parent::defaultSettings();
}