You are here

protected function SelectOrOtherWidgetBase::getEmptyOption in Select (or other) 8.3

Returns the empty option to add to the list of options, if any.

Return value

string|null Either static::OPTIONS_EMPTY_NONE, static::OPTIONS_EMPTY_SELECT, or NULL.

1 method overrides SelectOrOtherWidgetBase::getEmptyOption()
Widget::getEmptyOption in src/Plugin/Field/FieldWidget/Widget.php
Returns the empty option to add to the list of options, if any.

File

src/Plugin/Field/FieldWidget/SelectOrOtherWidgetBase.php, line 277
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\FieldWidget

Code

protected function getEmptyOption() {
}