You are here

protected function OptionsShsWidget::supportsGroups in Simple hierarchical select 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldWidget/OptionsShsWidget.php \Drupal\shs\Plugin\Field\FieldWidget\OptionsShsWidget::supportsGroups()

Indicates whether the widgets support optgroups.

Return value

bool TRUE if the widget supports optgroups, FALSE otherwise.

Overrides OptionsSelectWidget::supportsGroups

File

src/Plugin/Field/FieldWidget/OptionsShsWidget.php, line 295

Class

OptionsShsWidget
Plugin implementation of the 'options_shs' widget.

Namespace

Drupal\shs\Plugin\Field\FieldWidget

Code

protected function supportsGroups() {

  // We do not support optgroups.
  return FALSE;
}