abstract protected function SelectOrOtherWidgetBase::getOptions in Select (or other) 8.3
Returns the array of options for the widget.
Return value
array The array of available options for the widget.
2 calls to SelectOrOtherWidgetBase::getOptions()
- SelectOrOtherWidgetBase::formElement in src/
Plugin/ Field/ FieldWidget/ SelectOrOtherWidgetBase.php - Returns the form for a single field widget.
- SelectOrOtherWidgetBase::getSelectedOptions in src/
Plugin/ Field/ FieldWidget/ SelectOrOtherWidgetBase.php - Determines selected options from the incoming field values.
2 methods override SelectOrOtherWidgetBase::getOptions()
- ReferenceWidget::getOptions in src/
Plugin/ Field/ FieldWidget/ EntityReference/ ReferenceWidget.php - Returns the array of options for the widget.
- Widget::getOptions in src/
Plugin/ Field/ FieldWidget/ Widget.php - Returns the array of options for the widget.
File
- src/
Plugin/ Field/ FieldWidget/ SelectOrOtherWidgetBase.php, line 198 - 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\FieldWidgetCode
protected abstract function getOptions();