You are here

public function CompanyMembersControllerFactory::companyMembersController in Apigee Edge 8

Returns a preconfigured company members controller.

Parameters

string $company: Name of a company.

Return value

\Drupal\apigee_edge_teams\CompanyMembersControllerInterface The preconfigured company members control of the company.

Overrides CompanyMembersControllerFactoryInterface::companyMembersController

File

modules/apigee_edge_teams/src/CompanyMembersControllerFactory.php, line 69

Class

CompanyMembersControllerFactory
Factory service that builds a company members controller.

Namespace

Drupal\apigee_edge_teams

Code

public function companyMembersController(string $company) : CompanyMembersControllerInterface {
  if (!isset($this->instances[$company])) {
    $this->instances[$company] = new CompanyMembersController($company, $this->connector, $this->companyMembershipObjectCache);
  }
  return $this->instances[$company];
}