protected function OptionsWidgetBase::getEmptyOption

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 call to OptionsWidgetBase::getEmptyOption()
OptionsWidgetBase::getOptions in drupal/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php
Returns the array of options for the widget.
2 methods override OptionsWidgetBase::getEmptyOption()
ButtonsWidget::getEmptyOption in drupal/core/modules/options/lib/Drupal/options/Plugin/field/widget/ButtonsWidget.php
Returns the empty option to add to the list of options, if any.
SelectWidget::getEmptyOption in drupal/core/modules/options/lib/Drupal/options/Plugin/field/widget/SelectWidget.php
Returns the empty option to add to the list of options, if any.

File

drupal/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php, line 223
Contains \Drupal\options\Plugin\field\widget\OptionsWidgetBase.

Class

OptionsWidgetBase
Base class for the 'options_*' widgets.

Namespace

Drupal\options\Plugin\field\widget

Code

protected function getEmptyOption() {
}