function FormState::addBuildInfo

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addBuildInfo()
  2. 8.9.x core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::addBuildInfo()
  3. 10 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 1001

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

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.