protected function SelectOtherWidget::getEmptyOption in CCK Select Other 8
1 call to SelectOtherWidget::getEmptyOption()
- SelectOtherWidget::getOptions in src/
Plugin/ Field/ FieldWidget/ SelectOtherWidget.php - Add the Other option to the allowed values to form the select list option array.
File
- src/
Plugin/ Field/ FieldWidget/ SelectOtherWidget.php, line 262
Class
- SelectOtherWidget
- Plugin implementation of the 'cck_select_other' widget.
Namespace
Drupal\cck_select_other\Plugin\Field\FieldWidgetCode
protected function getEmptyOption() {
if (!$this->required) {
return t('- None -');
}
if (!$this->has_value) {
return t('- Select a value -');
}
}