You are here

public function SubFormState::hasTemporaryValue in Authorization 8

Determines if a temporary value is present.

Parameters

string $key: Properties are often stored as multi-dimensional associative arrays. If $key is a string, it will return isset($temporary[$key]). If $key is an array, each element of the array will be used as a nested key. If $key = ['foo', 'bar'] it will return isset($temporary['foo']['bar']).

Overrides FormStateInterface::hasTemporaryValue

File

src/Form/SubFormState.php, line 762

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function hasTemporaryValue($key) {
  return $this->mainFormState
    ->getTemporaryValue($key);
}