You are here

public function CompanyMembersController::getMembers in Apigee Edge 8

File

modules/apigee_edge_teams/src/CompanyMembersController.php, line 91

Class

CompanyMembersController
Definition of the Company members controller service.

Namespace

Drupal\apigee_edge_teams

Code

public function getMembers() : CompanyMembership {
  if ($this->companyMembershipObjectCache
    ->getMembership($this->company) === NULL) {
    $membership = $this
      ->decorated()
      ->getMembers();
    $this->companyMembershipObjectCache
      ->saveMembership($this->company, $membership);
  }
  return $this->companyMembershipObjectCache
    ->getMembership($this->company);
}