public function UserDataInterface::set

Stores data for a user account.

Parameters

string $module: The name of the module the data is associated with.

integer $uid: The user account ID the data is associated with.

string $name: The name of the data key.

mixed $value: The value to store. Non-scalar values are serialized automatically.

Return value

void

1 method overrides UserDataInterface::set()
UserData::set in drupal/core/modules/user/lib/Drupal/user/UserData.php
Implements \Drupal\user\UserDataInterface::set().

File

drupal/core/modules/user/lib/Drupal/user/UserDataInterface.php, line 55
Contains Drupal\user\UserDataInterface.

Class

UserDataInterface
Defines the user data service interface.

Namespace

Drupal\user

Code

public function set($module, $uid, $name, $value);