protected function Widget::supportsGroups in Select (or other) 8.3
Indicates whether the widgets support optgroups.
Return value
bool TRUE if the widget supports optgroups, FALSE otherwise.
Overrides SelectOrOtherWidgetBase::supportsGroups
1 call to Widget::supportsGroups()
- Widget::getOptions in src/
Plugin/ Field/ FieldWidget/ Widget.php - Returns the array of options for the widget.
File
- src/
Plugin/ Field/ FieldWidget/ Widget.php, line 185 - Contains \Drupal\select_or_other\Plugin\Field\FieldWidget\Widget.
Class
- Widget
- Plugin implementation of the 'select_or_other' widget.
Namespace
Drupal\select_or_other\Plugin\Field\FieldWidgetCode
protected function supportsGroups() {
return TRUE;
}