You are here

public function ApiProductController::update in Apigee Edge 8

File

modules/apigee_edge_apiproduct_rbac/tests/modules/apigee_edge_apiproduct_rbac_test/src/ApiProductController.php, line 114

Class

ApiProductController
API product controller that reads and writes attributes from/to States API.

Namespace

Drupal\apigee_edge_apiproduct_rbac_test

Code

public function update(EntityInterface $entity) : void {
  $this->state
    ->set($this
    ->generateApiProductStateKey($entity
    ->id()), $this->entitySerializer
    ->normalize($entity));
}