protected function OptionsWidgetBase::supportsGroups

Indicates whether the widgets support optgroups.

Return value

bool TRUE if the widget supports optgroups, FALSE otherwise.

1 call to OptionsWidgetBase::supportsGroups()
OptionsWidgetBase::getOptions in drupal/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php
Returns the array of options for the widget.
1 method overrides OptionsWidgetBase::supportsGroups()
SelectWidget::supportsGroups in drupal/core/modules/options/lib/Drupal/options/Plugin/field/widget/SelectWidget.php
Indicates whether the widgets support optgroups.

File

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

Class

OptionsWidgetBase
Base class for the 'options_*' widgets.

Namespace

Drupal\options\Plugin\field\widget

Code

protected function supportsGroups() {
  return FALSE;
}