You are here

protected function PrivateTempStore::createkey in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/PrivateTempStore.php \Drupal\user\PrivateTempStore::createkey()

Ensures that the key is unique for a user.

Parameters

string $key: The key.

Return value

string The unique key for the user.

4 calls to PrivateTempStore::createkey()
PrivateTempStore::delete in core/modules/user/src/PrivateTempStore.php
Deletes data from the store for a given key and releases the lock on it.
PrivateTempStore::get in core/modules/user/src/PrivateTempStore.php
Retrieves a value from this PrivateTempStore for a given key.
PrivateTempStore::getMetadata in core/modules/user/src/PrivateTempStore.php
Returns the metadata associated with a particular key/value pair.
PrivateTempStore::set in core/modules/user/src/PrivateTempStore.php
Stores a particular key/value pair in this PrivateTempStore.

File

core/modules/user/src/PrivateTempStore.php, line 196
Contains \Drupal\user\PrivateTempStore.

Class

PrivateTempStore
Stores and retrieves temporary data for a given owner.

Namespace

Drupal\user

Code

protected function createkey($key) {
  return $this
    ->getOwner() . ':' . $key;
}