You are here

protected function SelectOtherWidget::supportsGroups in CCK Select Other 8

Indicates whether the widgets support optgroups.

Return value

bool TRUE if the widget supports optgroups, FALSE otherwise.

Overrides OptionsWidgetBase::supportsGroups

1 call to SelectOtherWidget::supportsGroups()
SelectOtherWidget::getOptions in src/Plugin/Field/FieldWidget/SelectOtherWidget.php
Add the Other option to the allowed values to form the select list option array.

File

src/Plugin/Field/FieldWidget/SelectOtherWidget.php, line 168

Class

SelectOtherWidget
Plugin implementation of the 'cck_select_other' widget.

Namespace

Drupal\cck_select_other\Plugin\Field\FieldWidget

Code

protected function supportsGroups() {
  return TRUE;
}