function PrivateTempStore::createkey
Same name in other branches
- 8.9.x core/lib/Drupal/Core/TempStore/PrivateTempStore.php \Drupal\Core\TempStore\PrivateTempStore::createkey()
- 10 core/lib/Drupal/Core/TempStore/PrivateTempStore.php \Drupal\Core\TempStore\PrivateTempStore::createKey()
- 11.x core/lib/Drupal/Core/TempStore/PrivateTempStore.php \Drupal\Core\TempStore\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/
lib/ Drupal/ Core/ TempStore/ PrivateTempStore.php - Deletes data from the store for a given key and releases the lock on it.
- PrivateTempStore::get in core/
lib/ Drupal/ Core/ TempStore/ PrivateTempStore.php - Retrieves a value from this PrivateTempStore for a given key.
- PrivateTempStore::getMetadata in core/
lib/ Drupal/ Core/ TempStore/ PrivateTempStore.php - Returns the metadata associated with a particular key/value pair.
- PrivateTempStore::set in core/
lib/ Drupal/ Core/ TempStore/ PrivateTempStore.php - Stores a particular key/value pair in this PrivateTempStore.
File
-
core/
lib/ Drupal/ Core/ TempStore/ PrivateTempStore.php, line 214
Class
- PrivateTempStore
- Stores and retrieves temporary data for a given owner.
Namespace
Drupal\Core\TempStoreCode
protected function createkey($key) {
return $this->getOwner() . ':' . $key;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.