You are here

protected function AcquiaPurgeInvalidation::getParentContext in Acquia Purge 7

Retrieve the context value set on the queue item, adds the suffix.

Return value

string|null

2 calls to AcquiaPurgeInvalidation::getParentContext()
AcquiaPurgeInvalidation::getStatus in lib/invalidation/AcquiaPurgeInvalidation.php
Route any calls to the queue item's function so that a single queue item holds the overal statuses for all domain and scheme-varied copies of a single HTTP path.
AcquiaPurgeInvalidation::setStatus in lib/invalidation/AcquiaPurgeInvalidation.php
Set status on the queue item, in the invalidation-specific context.

File

lib/invalidation/AcquiaPurgeInvalidation.php, line 87

Class

AcquiaPurgeInvalidation
Provides an invalidation object.

Code

protected function getParentContext() {
  if (is_string($this->context) && strlen($this->contextSuffix)) {
    return $this->context . '_' . $this->contextSuffix;
  }
  return $this->context;
}