protected function PrivateTempStore::createkey in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TempStore/PrivateTempStore.php \Drupal\Core\TempStore\PrivateTempStore::createkey()
- 9 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.
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;
}