PrivateTempStore::createkey

protected PrivateTempStore::createkey($key)

Ensures that the key is unique for a user.

Parameters

string $key: The key.

Return value

string The unique key for the user.

File

core/modules/user/src/PrivateTempStore.php, line 193

Class

PrivateTempStore
Stores and retrieves temporary data for a given owner.

Namespace

Drupal\user

Code

protected function createkey($key) {
  return $this->getOwner() . ':' . $key;
}
doc_Drupal
2016-10-29 09:34:56
Comments
Leave a Comment

Please login to continue.