public function getMetadata($key) { $key =
$this->
createkey($key);
// Fetch the key/value pair and its metadata.
$object =
$this->storage->
get($key);
if ($object) { // Don't keep the data itself in memory.
unset($object->data
);
return new Lock($object->owner,
$object->updated
);
} } /**
* Deletes data from the store for a given key and releases the lock on it.
*
* @param string $key
* The key of the data to delete.
*
* @return bool
* TRUE if the object was deleted or does not exist, FALSE if it exists but
* is not owned by $this->owner.
*
* @throws \Drupal\Core\TempStore\TempStoreException
* Thrown when a lock for the backend storage could not be acquired.
*/