You are here

public function DeveloperCompaniesCache::getCompanies in Apigee Edge 8

Returns companies of a developer.

Parameters

string $id: Developer id.

Return value

string[]|null Array of company names or NULL if information is not yet available.

Overrides DeveloperCompaniesCacheInterface::getCompanies

File

src/Entity/DeveloperCompaniesCache.php, line 51

Class

DeveloperCompaniesCache
Default non-persistent developer company membership cache implementation.

Namespace

Drupal\apigee_edge\Entity

Code

public function getCompanies(string $id) : ?array {
  $item = $this->backend
    ->get($id);
  return $item ? $item->data : NULL;
}