You are here

public function ApiProductController::getAttributes in Apigee Edge 8

File

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

Class

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

Namespace

Drupal\apigee_edge_apiproduct_rbac_test

Code

public function getAttributes(string $entity_id) : AttributesProperty {
  $data = $this->state
    ->get($this
    ->generateApiProductAttributeStateKey($entity_id)) ?? [];
  return $this->entitySerializer
    ->denormalize($data, AttributesProperty::class);
}