public function AcquiaPurgeInvalidation::setStatusContext in Acquia Purge 7
Since queue items hold multiple invalidations, the context is kept local.
Overrides AcquiaPurgeQueueStatusInterface::setStatusContext
File
- lib/
invalidation/ AcquiaPurgeInvalidation.php, line 142
Class
- AcquiaPurgeInvalidation
- Provides an invalidation object.
Code
public function setStatusContext($id) {
if (is_null($id)) {
$this
->setStatusContextPrivate(NULL);
$this->queue_item
->setStatusContext(NULL);
return;
}
$id = $this->scheme . '_' . $this->domain . '_' . $id;
$this
->setStatusContextPrivate($id);
}