You are here

public function FormState::addBuildInfo 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::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 957
Contains \Drupal\Core\Form\FormState.

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