You are here

protected function SelectOrOtherWidgetBase::supportsGroups in Select (or other) 8.3

Indicates whether the widgets support optgroups.

Return value

bool TRUE if the widget supports optgroups, FALSE otherwise.

1 method overrides SelectOrOtherWidgetBase::supportsGroups()
Widget::supportsGroups in src/Plugin/Field/FieldWidget/Widget.php
Indicates whether the widgets support optgroups.

File

src/Plugin/Field/FieldWidget/SelectOrOtherWidgetBase.php, line 256
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\FieldWidget

Code

protected function supportsGroups() {
  return FALSE;
}