You are here

public function CachedEntityCrudOperationsControllerTrait::delete in Apigee Edge 8

2 calls to CachedEntityCrudOperationsControllerTrait::delete()
DeveloperController::delete in src/Entity/Controller/DeveloperController.php
TeamController::delete in modules/apigee_edge_teams/src/Entity/Controller/TeamController.php

File

src/Entity/Controller/CachedEntityCrudOperationsControllerTrait.php, line 59

Class

CachedEntityCrudOperationsControllerTrait
Helper trait for those entity controllers that supports all CRUD operations.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function delete(string $entity_id) : EntityInterface {
  $entity = $this
    ->decorated()
    ->delete($entity_id);
  $this
    ->entityCache()
    ->removeEntities([
    $entity_id,
  ]);
  return $entity;
}