You are here

private function TeamController::decorated in Apigee Edge 8

Returns the decorated company controller from the SDK.

Return value

\Apigee\Edge\Api\Management\Controller\CompanyControllerInterface The initialized company controller.

Overrides CachedEntityCrudOperationsControllerTrait::decorated

File

modules/apigee_edge_teams/src/Entity/Controller/TeamController.php, line 157

Class

TeamController
Definition of the Team controller service.

Namespace

Drupal\apigee_edge_teams\Entity\Controller

Code

private function decorated() : EdgeCompanyControllerInterface {
  if ($this->instance === NULL) {
    $this->instance = new EdgeCompanyController($this->connector
      ->getOrganization(), $this->connector
      ->getClient(), NULL, $this->orgController);
  }
  return $this->instance;
}