You are here

protected function EntityReferenceHierarchySelect::supportsGroups in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/EntityReferenceHierarchySelect.php \Drupal\entity_hierarchy\Plugin\Field\FieldWidget\EntityReferenceHierarchySelect::supportsGroups()

Indicates whether the widgets support optgroups.

Return value

bool TRUE if the widget supports optgroups, FALSE otherwise.

Overrides OptionsWidgetBase::supportsGroups

File

src/Plugin/Field/FieldWidget/EntityReferenceHierarchySelect.php, line 110

Class

EntityReferenceHierarchySelect
Select widget.

Namespace

Drupal\entity_hierarchy\Plugin\Field\FieldWidget

Code

protected function supportsGroups() {
  return TRUE;
}