You are here

public function WebformInterface::getState in Webform 8.5

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

Returns the stored value for a given key in the webform'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 WebformInterface::getState()
Webform::getState in src/Entity/Webform.php
Returns the stored value for a given key in the webform's state.

File

src/WebformInterface.php, line 1162

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

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