Indicates whether the widgets support optgroups.
Return value
bool
TRUE if the widget supports optgroups, FALSE otherwise.
Overrides OptionsWidgetBase::supportsGroups
File
- drupal/core/modules/options/lib/Drupal/options/Plugin/field/widget/SelectWidget.php, line 58
- Contains \Drupal\options\Plugin\field\widget\SelectWidget.
Class
- SelectWidget
- Plugin implementation of the 'options_select' widget.
Namespace
Drupal\options\Plugin\field\widget
Code
protected function supportsGroups() {
return TRUE;
}