public function CachedAttributesAwareEntityControllerTrait::updateAttributes in Apigee Edge 8
File
- src/
Entity/ Controller/ CachedAttributesAwareEntityControllerTrait.php, line 77
Class
- CachedAttributesAwareEntityControllerTrait
- Helper trait for those entity controllers that supports attribute CRUDL.
Namespace
Drupal\apigee_edge\Entity\ControllerCode
public function updateAttributes(string $entity_id, AttributesProperty $attributes) : AttributesProperty {
$attributes = $this
->decorated()
->updateAttributes($entity_id, $attributes);
// Enforce reload of entity from Apigee Edge.
$this
->entityCache()
->removeEntities([
$entity_id,
]);
$this
->entityCache()
->allEntitiesInCache(FALSE);
return $attributes;
}