You are here

public function FormStateInterface::setGroups in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setGroups()
  2. 10 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::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

2 methods override FormStateInterface::setGroups()
FormState::setGroups in core/lib/Drupal/Core/Form/FormState.php
Sets references to details elements to render them within vertical tabs.
FormStateDecoratorBase::setGroups in core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
Sets references to details elements to render them within vertical tabs.

File

core/lib/Drupal/Core/Form/FormStateInterface.php, line 700

Class

FormStateInterface
Provides an interface for an object containing the current state of a form.

Namespace

Drupal\Core\Form

Code

public function setGroups(array $groups);