You are here

class PrivateTempStore in Drupal 8

Same name in this branch
  1. 8 core/modules/user/src/PrivateTempStore.php \Drupal\user\PrivateTempStore
  2. 8 core/lib/Drupal/Core/TempStore/PrivateTempStore.php \Drupal\Core\TempStore\PrivateTempStore

Stores and retrieves temporary data for a given owner.

Hierarchy

Expanded class hierarchy of PrivateTempStore

Deprecated

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead.

See also

\Drupal\Core\TempStore\PrivateTempStore

https://www.drupal.org/node/2935639

1 file declares its use of PrivateTempStore
PrivateTempStoreTest.php in core/modules/user/tests/src/Unit/PrivateTempStoreTest.php

File

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

Namespace

Drupal\user
View source
class PrivateTempStore extends CorePrivateTempStore {

}

Members

Namesort descending Modifiers Type Description Overrides
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
PrivateTempStore::$currentUser protected property The current user.
PrivateTempStore::$expire protected property The time to live for items in seconds.
PrivateTempStore::$lockBackend protected property The lock object used for this data.
PrivateTempStore::$requestStack protected property The request stack.
PrivateTempStore::$storage protected property The key/value storage object used for this data.
PrivateTempStore::createkey protected function Ensures that the key is unique for a user.
PrivateTempStore::delete public function Deletes data from the store for a given key and releases the lock on it.
PrivateTempStore::get public function Retrieves a value from this PrivateTempStore for a given key.
PrivateTempStore::getMetadata public function Returns the metadata associated with a particular key/value pair.
PrivateTempStore::getOwner protected function Gets the current owner based on the current user or the session ID.
PrivateTempStore::set public function Stores a particular key/value pair in this PrivateTempStore.
PrivateTempStore::startSession protected function Start session because it is required for a private temp store.
PrivateTempStore::__construct public function Constructs a new object for accessing data from a key/value store.