You are here

public function FormStateDecoratorBase::setGroups in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::setGroups()

Sets references to details elements to render them within vertical tabs.

Parameters

array $groups: References to details elements to render them within vertical tabs.

Return value

$this

Overrides FormStateInterface::setGroups

File

core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 105

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

public function setGroups(array $groups) {
  $this->decoratedFormState
    ->setGroups($groups);
  return $this;
}