public static function Select2Widget::defaultSettings in Select 2 8
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 Select2Widget::defaultSettings()
- Select2EntityReferenceWidget::defaultSettings in src/
Plugin/ Field/ FieldWidget/ Select2EntityReferenceWidget.php - Defines the default settings for this plugin.
1 method overrides Select2Widget::defaultSettings()
- Select2EntityReferenceWidget::defaultSettings in src/
Plugin/ Field/ FieldWidget/ Select2EntityReferenceWidget.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldWidget/ Select2Widget.php, line 28
Class
- Select2Widget
- Plugin implementation of the 'select2' widget.
Namespace
Drupal\select2\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'width' => '100%',
] + parent::defaultSettings();
}