You are here

public function WebformInterface::getUserData in Webform 8.5

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

Returns the stored value for a given key in the webform's user data.

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

File

src/WebformInterface.php, line 1208

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

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