public function CachedEntityCrudOperationsControllerTrait::update in Apigee Edge 8
File
- src/
Entity/ Controller/ CachedEntityCrudOperationsControllerTrait.php, line 81
Class
- CachedEntityCrudOperationsControllerTrait
- Helper trait for those entity controllers that supports all CRUD operations.
Namespace
Drupal\apigee_edge\Entity\ControllerCode
public function update(EntityInterface $entity) : void {
$this
->decorated()
->update($entity);
$this
->entityCache()
->saveEntities([
$entity,
]);
}