You are here

public function CompanyMembersController::setMembers in Apigee Edge 8

File

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

Class

CompanyMembersController
Definition of the Company members controller service.

Namespace

Drupal\apigee_edge_teams

Code

public function setMembers(CompanyMembership $members) : CompanyMembership {
  $result = $this
    ->decorated()
    ->setMembers($members);

  // Returned membership does not contain all actual members of the company,
  // so it is easier to remove the membership object from the cache and
  // enforce reload in getMembers().
  $this->companyMembershipObjectCache
    ->removeMembership($this->company);
  return $result;
}