public function YamlFormInterface::setState in YAML Form 8
Saves a value for a given key in the form's state.
Parameters
string $key: The key of the data to store.
mixed $value: The data to store.
1 method overrides YamlFormInterface::setState()
- YamlForm::setState in src/
Entity/ YamlForm.php - Saves a value for a given key in the form's state.
File
- src/
YamlFormInterface.php, line 503
Class
- YamlFormInterface
- Provides an interface defining a form entity.
Namespace
Drupal\yamlformCode
public function setState($key, $value);