LocaleProjectStorage
class LocaleProjectStorage implements LocaleProjectStorageInterface (View source)
Provides the locale project storage system using a key value store.
Properties
| protected KeyValueStoreInterface | $keyValueStore | The key value store to use. |
|
| protected array | $cache | Static state cache. |
|
| static protected bool | $all | Cache status flag. |
Methods
Returns the stored value for a given key.
Returns a list of project records.
Creates or updates the project record.
Creates or updates multiple project records.
Deletes project records for a given key.
Deletes multiple project records.
Resets the project storage cache.
Deletes all projects records.
Mark all projects as disabled.
Returns the count of project records.
Returns all the project records.
Details
__construct(KeyValueFactoryInterface $key_value_factory)
Constructs a State object.
mixed
get(string $key, mixed $default = NULL)
Returns the stored value for a given key.
array
getMultiple(array $keys)
Returns a list of project records.
set(string $key, mixed $value)
Creates or updates the project record.
setMultiple(array $data)
Creates or updates multiple project records.
delete(string $key)
Deletes project records for a given key.
deleteMultiple(array $keys)
Deletes multiple project records.
resetCache()
Resets the project storage cache.
array
deleteAll()
Deletes all projects records.
disableAll()
Mark all projects as disabled.
int
countProjects()
Returns the count of project records.
array
getAll()
Returns all the project records.