You are here

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

Same name and namespace in other branches
  1. 8.5 src/Plugin/Field/FieldWidget/WebformEntityReferenceSelectWidget.php \Drupal\webform\Plugin\Field\FieldWidget\WebformEntityReferenceSelectWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides WebformEntityReferenceWidgetTrait::defaultSettings

File

src/Plugin/Field/FieldWidget/WebformEntityReferenceSelectWidget.php, line 33

Class

WebformEntityReferenceSelectWidget
Plugin implementation of the 'webform_entity_reference_select' widget.

Namespace

Drupal\webform\Plugin\Field\FieldWidget

Code

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