You are here

public static function SelectOtherWidget::defaultSettings in CCK Select Other 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldWidget/SelectOtherWidget.php, line 30

Class

SelectOtherWidget
Plugin implementation of the 'cck_select_other' widget.

Namespace

Drupal\cck_select_other\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'other_label' => t('Other'),
  ] + parent::defaultSettings();
}