You are here

public function FormState::addRebuildInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 720
Contains \Drupal\Core\Form\FormState.

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