You are here

public function YamlFormInterface::getState in YAML Form 8

Returns the stored value for a given key in the form's state.

Parameters

string $key: The key of the data to retrieve.

mixed $default: The default value to use if the key is not found.

Return value

mixed The stored value, or NULL if no value exists.

1 method overrides YamlFormInterface::getState()
YamlForm::getState in src/Entity/YamlForm.php
Returns the stored value for a given key in the form's state.

File

src/YamlFormInterface.php, line 493

Class

YamlFormInterface
Provides an interface defining a form entity.

Namespace

Drupal\yamlform

Code

public function getState($key, $default = NULL);