You are here

public static function EntityReferenceDragDropWidget::defaultSettings in Entity Reference Drag & Drop 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldWidget/EntityReferenceDragDropWidget.php \Drupal\entityreference_dragdrop\Plugin\Field\FieldWidget\EntityReferenceDragDropWidget::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/FieldWidget/EntityReferenceDragDropWidget.php, line 78

Class

EntityReferenceDragDropWidget
Plugin implementation of the 'entityreference_dragdrop' widget.

Namespace

Drupal\entityreference_dragdrop\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'view_mode' => static::VIEW_MODE_TITLE,
    'available_entities_label' => 'Available entities',
    'selected_entities_label' => 'Selected entities',
    'display_filter' => 0,
  ] + parent::defaultSettings();
}