You are here

public function SubFormState::setTemporary in Authorization 8

Sets temporary data.

Parameters

array $temporary: Temporary data accessible during the current page request only.

Return value

$this

Overrides FormStateInterface::setTemporary

File

src/Form/SubFormState.php, line 732

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function setTemporary(array $temporary) {
  $this->mainFormState
    ->setTemporary($temporary);
  return $this;
}