public function AppCache::getAppsByOwner in Apigee Edge 8
Returns an app from the cache by its 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.
Return value
\Apigee\Edge\Api\Management\Entity\AppInterface[] Array of apps that belongs to this owner in cache or null if no entry found in cache for this owner.
Overrides AppCacheInterface::getAppsByOwner
File
- src/
Entity/ Controller/ Cache/ AppCache.php, line 96
Class
- AppCache
- Default app cache implementation for app controllers.
Namespace
Drupal\apigee_edge\Entity\Controller\CacheCode
public function getAppsByOwner(string $owner) : ?array {
if (!empty($this->appOwnerAppNameAppIdMap[$owner])) {
return $this
->getEntities($this->appOwnerAppNameAppIdMap[$owner]);
}
return NULL;
}