class SharedTempStore in Drupal 8
Same name in this branch
- 8 core/modules/user/src/SharedTempStore.php \Drupal\user\SharedTempStore
- 8 core/lib/Drupal/Core/TempStore/SharedTempStore.php \Drupal\Core\TempStore\SharedTempStore
Stores and retrieves temporary data for a given owner.
Hierarchy
- class \Drupal\Core\TempStore\SharedTempStore uses DependencySerializationTrait
- class \Drupal\user\SharedTempStore
Expanded class hierarchy of SharedTempStore
Deprecated
in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead.
See also
\Drupal\Core\TempStore\SharedTempStore
https://www.drupal.org/node/2935639
1 file declares its use of SharedTempStore
- SharedTempStoreTest.php in core/
modules/ user/ tests/ src/ Unit/ SharedTempStoreTest.php
File
- core/
modules/ user/ src/ SharedTempStore.php, line 25
Namespace
Drupal\userView source
class SharedTempStore extends CoreSharedTempStore {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
SharedTempStore:: |
protected | property | The time to live for items in seconds. | |
SharedTempStore:: |
protected | property | The lock object used for this data. | |
SharedTempStore:: |
protected | property | The owner key to store along with the data (e.g. a user or session ID). | |
SharedTempStore:: |
protected | property | The request stack. | |
SharedTempStore:: |
protected | property | The key/value storage object used for this data. | |
SharedTempStore:: |
public | function | Deletes data from the store for a given key and releases the lock on it. | |
SharedTempStore:: |
public | function | Deletes data from the store for a given key and releases the lock on it. | |
SharedTempStore:: |
public | function | Retrieves a value from this SharedTempStore for a given key. | |
SharedTempStore:: |
public | function | Retrieves a value from this SharedTempStore for a given key. | |
SharedTempStore:: |
public | function | Returns the metadata associated with a particular key/value pair. | |
SharedTempStore:: |
public | function | Stores a particular key/value pair in this SharedTempStore. | |
SharedTempStore:: |
public | function | Stores a particular key/value pair only if the key doesn't already exist. | |
SharedTempStore:: |
public | function | Stores a particular key/value pair in this SharedTempStore. | |
SharedTempStore:: |
public | function | Constructs a new object for accessing data from a key/value store. |