class SerializableTempstore

An extension of the SharedTempStore system for serialized data.

Hierarchy

Expanded class hierarchy of SerializableTempstore

Deprecated

in ctools 8.x-3.10. Will be removed before ctools:4.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead.

File

src/SerializableTempstore.php, line 14

Namespace

Drupal\ctools
View source
class SerializableTempstore extends SharedTempStore {
  use DependencySerializationTrait;

}

Members

Title Sort descending Modifiers Object type Summary 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 2
DependencySerializationTrait::__wakeup public function #[\ReturnTypeWillChange] 2
SharedTempStore::$currentUser protected property The current user.
SharedTempStore::$expire protected property The time to live for items in seconds.
SharedTempStore::$lockBackend protected property The lock object used for this data.
SharedTempStore::$owner protected property The owner key to store along with the data (e.g. a user or session ID).
SharedTempStore::$requestStack protected property The request stack.
SharedTempStore::$storage protected property The key/value storage object used for this data.
SharedTempStore::delete public function Deletes data from the store for a given key and releases the lock on it.
SharedTempStore::deleteIfOwner public function Deletes data from the store for a given key and releases the lock on it.
SharedTempStore::ensureAnonymousSession protected function Stores the owner in the session if the user is anonymous.
SharedTempStore::get public function Retrieves a value from this SharedTempStore for a given key.
SharedTempStore::getIfOwner public function Retrieves a value from this SharedTempStore for a given key.
SharedTempStore::getMetadata public function Returns the metadata associated with a particular key/value pair.
SharedTempStore::set public function Stores a particular key/value pair in this SharedTempStore.
SharedTempStore::setIfNotExists public function Stores a particular key/value pair only if the key doesn't already exist.
SharedTempStore::setIfOwner public function Stores a particular key/value pair in this SharedTempStore.
SharedTempStore::__construct public function Constructs a new object for accessing data from a key/value store.