function FormStateInterface::setGroups

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

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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.