public static function EntityReferenceDragDropWidget::defaultSettings in Entity Reference Drag & Drop 2.x
Same name and namespace in other branches
- 8 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\FieldWidgetCode
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();
}