You are here

public function WebformInterface::setUserData in Webform 8.5

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

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

Parameters

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

mixed $value: The data to store.

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

File

src/WebformInterface.php, line 1218

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function setUserData($key, $value);