You are here

public function AppCache::removeAppsByOwner in Apigee Edge 8

Remove all apps from the cache by their owner.

Only developer id (UUID) and company name can be used as owner because this is what is stored on the app entities.

Parameters

string $owner: Developer id (UUID) or company name.

Overrides AppCacheInterface::removeAppsByOwner

File

src/Entity/Controller/Cache/AppCache.php, line 107

Class

AppCache
Default app cache implementation for app controllers.

Namespace

Drupal\apigee_edge\Entity\Controller\Cache

Code

public function removeAppsByOwner(string $owner) : void {
  if (!empty($this->appOwnerAppNameAppIdMap[$owner])) {
    $this
      ->removeEntities($this->appOwnerAppNameAppIdMap[$owner]);
    unset($this->appOwnerAppNameAppIdMap[$owner]);
  }
}