You are here

public function FormState::addRebuildInfo in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addRebuildInfo()
  2. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addRebuildInfo()

File

core/lib/Drupal/Core/Form/FormState.php, line 718

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function addRebuildInfo($property, $value) {
  $rebuild_info = $this
    ->getRebuildInfo();
  $rebuild_info[$property] = $value;
  $this
    ->setRebuildInfo($rebuild_info);
  return $this;
}