public static function SelectOrOtherWidgetBase::defaultSettings in Select (or other) 8.3
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 SelectOrOtherWidgetBase::defaultSettings()
- SelectOrOtherWidgetBaseTest::testDefaultSettings in tests/src/ Unit/ SelectOrOtherWidgetBaseTest.php 
- Test if defaultSettings() returns the correct keys.
File
- src/Plugin/ Field/ FieldWidget/ SelectOrOtherWidgetBase.php, line 79 
- Contains \Drupal\select_or_other\Plugin\Field\FieldWidget\SelectOrOtherWidgetBase.
Class
- SelectOrOtherWidgetBase
- 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',
    'available_options' => '',
    'other' => 'Other',
    'other_title' => '',
    'other_unknown_defaults' => 'other',
    'other_size' => 60,
    'sort_options' => 0,
  ] + parent::defaultSettings();
}