public static function WidgetBase::defaultSettings in Select (or other) 4.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldWidget/WidgetBase.php \Drupal\select_or_other\Plugin\Field\FieldWidget\WidgetBase::defaultSettings()
@codeCoverageIgnore Ignore this method because we would be testing if a hard coded array is equal to another hard coded array.
Overrides PluginSettingsBase::defaultSettings
1 call to WidgetBase::defaultSettings()
- ListWidget::defaultSettings in src/
Plugin/ Field/ FieldWidget/ ListWidget.php - @codeCoverageIgnore Ignore this method because we would be testing if a hard coded array is equal to another hard coded array.
1 method overrides WidgetBase::defaultSettings()
- ListWidget::defaultSettings in src/
Plugin/ Field/ FieldWidget/ ListWidget.php - @codeCoverageIgnore Ignore this method because we would be testing if a hard coded array is equal to another hard coded array.
File
- src/
Plugin/ Field/ FieldWidget/ WidgetBase.php, line 65
Class
- WidgetBase
- Base class for the 'select_or_other_*' widgets.
Namespace
Drupal\select_or_other\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'select_element_type' => 'select_or_other_select',
'sort_options' => '',
] + parent::defaultSettings();
}