You are here

public function TeamController::setStatus in Apigee Edge 8

File

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

Class

TeamController
Definition of the Team controller service.

Namespace

Drupal\apigee_edge_teams\Entity\Controller

Code

public function setStatus(string $entity_id, string $status) : void {
  $this
    ->decorated()
    ->setStatus($entity_id, $status);

  // Enforce reload of entity from Apigee Edge.
  $this->entityCache
    ->removeEntities([
    $entity_id,
  ]);
  $this->entityCache
    ->allEntitiesInCache(FALSE);
}