You are here

public function WebformInterface::setState in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformInterface.php \Drupal\webform\WebformInterface::setState()

Saves a value for a given key in the webform's state.

Parameters

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

mixed $value: The data to store.

1 method overrides WebformInterface::setState()
Webform::setState in src/Entity/Webform.php
Saves a value for a given key in the webform's state.

File

src/WebformInterface.php, line 1172

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function setState($key, $value);