public function FormState::addRebuildInfo in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addRebuildInfo()
Adds a value to the rebuild info.
Parameters
string $property: The property to use for the value.
mixed $value: The value to set.
Return value
$this
Overrides FormStateInterface::addRebuildInfo
File
- core/
lib/ Drupal/ Core/ Form/ FormState.php, line 717
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function addRebuildInfo($property, $value) {
$rebuild_info = $this
->getRebuildInfo();
$rebuild_info[$property] = $value;
$this
->setRebuildInfo($rebuild_info);
return $this;
}