function FormState::addBuildInfo
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addBuildInfo()
- 10 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addBuildInfo()
- 11.x core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addBuildInfo()
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 979
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.