You are here

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

Same name and namespace in other branches
  1. 8.5 src/Plugin/Field/FieldWidget/WebformEntityReferenceWidgetTrait.php \Drupal\webform\Plugin\Field\FieldWidget\WebformEntityReferenceWidgetTrait::defaultSettings()
1 method overrides WebformEntityReferenceWidgetTrait::defaultSettings()
WebformEntityReferenceSelectWidget::defaultSettings in src/Plugin/Field/FieldWidget/WebformEntityReferenceSelectWidget.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldWidget/WebformEntityReferenceWidgetTrait.php, line 40

Class

WebformEntityReferenceWidgetTrait
Trait for webform entity reference and autocomplete widget.

Namespace

Drupal\webform\Plugin\Field\FieldWidget

Code

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