public function FormState::setBuildInfo in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setBuildInfo()
Sets the build info for the form.
Parameters
array $build_info: An array of build info.
Return value
$this
Overrides FormStateInterface::setBuildInfo
See also
\Drupal\Core\Form\FormState::$build_info
2 calls to FormState::setBuildInfo()
- FormState::addBuildInfo in core/
lib/ Drupal/ Core/ Form/ FormState.php - Adds a value to the build info.
- FormState::loadInclude in core/
lib/ Drupal/ Core/ Form/ FormState.php - Ensures an include file is loaded whenever the form is processed.
File
- core/
lib/ Drupal/ Core/ Form/ FormState.php, line 939
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function setBuildInfo(array $build_info) {
$this->build_info = $build_info;
return $this;
}