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