You are here

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

Same name and namespace in other branches
  1. 8.5 src/Plugin/Field/FieldFormatter/WebformEntityReferenceEntityFormatter.php \Drupal\webform\Plugin\Field\FieldFormatter\WebformEntityReferenceEntityFormatter::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/WebformEntityReferenceEntityFormatter.php, line 70

Class

WebformEntityReferenceEntityFormatter
Plugin implementation of the 'Webform rendered entity' formatter.

Namespace

Drupal\webform\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'source_entity' => TRUE,
  ] + parent::defaultSettings();
}