public function FormState::addBuildInfo in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addBuildInfo()
Adds a value to the build info.
Parameters
string $property: The property to use for the value.
mixed $value: The value to set.
Return value
$this
Overrides FormStateInterface::addBuildInfo
1 call to FormState::addBuildInfo()
- FormState::setFormObject in core/
lib/ Drupal/ Core/ Form/ FormState.php - Sets the form object that is responsible for building this form.
File
- core/
lib/ Drupal/ Core/ Form/ FormState.php, line 954
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function addBuildInfo($property, $value) {
$build_info = $this
->getBuildInfo();
$build_info[$property] = $value;
$this
->setBuildInfo($build_info);
return $this;
}