You are here

public function ApiProductController::updateAttributes in Apigee Edge 8

1 call to ApiProductController::updateAttributes()
ApiProductController::create in modules/apigee_edge_apiproduct_rbac/tests/modules/apigee_edge_apiproduct_rbac_test/src/ApiProductController.php

File

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

Class

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

Namespace

Drupal\apigee_edge_apiproduct_rbac_test

Code

public function updateAttributes(string $entity_id, AttributesProperty $attributes) : AttributesProperty {
  $this->state
    ->set($this
    ->generateApiProductAttributeStateKey($entity_id), $this->entitySerializer
    ->normalize($attributes));
  return $attributes;
}