public function ApiProductController::__construct in Apigee Edge 8
Same name in this branch
- 8 src/Entity/Controller/ApiProductController.php \Drupal\apigee_edge\Entity\Controller\ApiProductController::__construct()
- 8 modules/apigee_edge_apiproduct_rbac/tests/modules/apigee_edge_apiproduct_rbac_test/src/ApiProductController.php \Drupal\apigee_edge_apiproduct_rbac_test\ApiProductController::__construct()
ApiProductController constructor.
Parameters
\Drupal\apigee_edge\Entity\Controller\ApiProductControllerInterface $inner_service: The decorated API product controller service.
\Drupal\Core\State\StateInterface $state: The States API.
File
- modules/
apigee_edge_apiproduct_rbac/ tests/ modules/ apigee_edge_apiproduct_rbac_test/ src/ ApiProductController.php, line 76
Class
- ApiProductController
- API product controller that reads and writes attributes from/to States API.
Namespace
Drupal\apigee_edge_apiproduct_rbac_testCode
public function __construct(ApiProductControllerInterface $inner_service, StateInterface $state) {
$this->innerService = $inner_service;
$this->state = $state;
$this->entitySerializer = new ApiProductSerializer();
}