You are here

public function SubFormState::setGroups in Authorization 8

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

src/Form/SubFormState.php, line 515

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function setGroups(array $groups) {

  // @todo What are groups? Is this the way to handle them in a sub-form?
  $this->mainFormState
    ->setGroups($groups);
  return $this;
}