You are here

public static function WebformEntityReferenceLinkFormatter::defaultSettings in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 61

Class

WebformEntityReferenceLinkFormatter
Plugin implementation of the 'Link to webform' formatter.

Namespace

Drupal\webform\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'label' => 'Go to [webform:title] webform',
    'dialog' => '',
    'attributes' => [],
  ] + parent::defaultSettings();
}