You are here

public static function ListWidget::defaultSettings in Select (or other) 4.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldWidget/ListWidget.php \Drupal\select_or_other\Plugin\Field\FieldWidget\ListWidget::defaultSettings()

@codeCoverageIgnore Ignore this method because we would be testing if a hard coded array is equal to another hard coded array.

Overrides WidgetBase::defaultSettings

File

src/Plugin/Field/FieldWidget/ListWidget.php, line 28

Class

ListWidget
Plugin implementation of the 'select_or_other_list' widget.

Namespace

Drupal\select_or_other\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'add_other_value_to_allowed_values' => TRUE,
  ] + parent::defaultSettings();
}