public static function EntityReferenceBrowserWidget::defaultSettings in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php \Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
1 call to EntityReferenceBrowserWidget::defaultSettings()
- FileBrowserWidget::defaultSettings in src/
Plugin/ Field/ FieldWidget/ FileBrowserWidget.php - Defines the default settings for this plugin.
1 method overrides EntityReferenceBrowserWidget::defaultSettings()
- FileBrowserWidget::defaultSettings in src/
Plugin/ Field/ FieldWidget/ FileBrowserWidget.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldWidget/ EntityReferenceBrowserWidget.php, line 134
Class
- EntityReferenceBrowserWidget
- Plugin implementation of the 'entity_reference' widget for entity browser.
Namespace
Drupal\entity_browser\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'entity_browser' => NULL,
'open' => FALSE,
'field_widget_display' => 'label',
'field_widget_edit' => TRUE,
'field_widget_remove' => TRUE,
'field_widget_replace' => FALSE,
'field_widget_display_settings' => [],
'selection_mode' => EntityBrowserElement::SELECTION_MODE_APPEND,
] + parent::defaultSettings();
}