You are here

public function AcquiaPurgeStateStorageInterface::get in Acquia Purge 7

Retrieve the object named $key.

Parameters

int $key: The key with which the object is stored in state storage.

mixed|null $default: (optional) The default value to use if the entry doesn't yet exist.

Return value

AcquiaPurgeStateItemInterface The item.

1 method overrides AcquiaPurgeStateStorageInterface::get()
AcquiaPurgeStateStorageBase::get in lib/state/AcquiaPurgeStateStorageBase.php
Retrieve the object named $key.

File

lib/state/AcquiaPurgeStateStorageInterface.php, line 29
Contains AcquiaPurgeStateStorageInterface.

Class

AcquiaPurgeStateStorageInterface
Describes a state storage object that maintains AcquiaPurgeStateItem objects.

Code

public function get($key, $default = NULL);