You are here

public function TeamAppEdgeEntityControllerProxy::update in Apigee Edge 8

Updates an entity in Apigee Edge.

Applies incoming values from Apigee Edge in $entity.

Parameters

\Apigee\Edge\Entity\EntityInterface $entity: The update entity.

Overrides EdgeEntityControllerInterface::update

File

modules/apigee_edge_teams/src/Entity/Controller/TeamAppEdgeEntityControllerProxy.php, line 88

Class

TeamAppEdgeEntityControllerProxy
Team app specific entity controller implementation.

Namespace

Drupal\apigee_edge_teams\Entity\Controller

Code

public function update(EntityInterface $entity) : void {

  /** @var \Apigee\Edge\Api\Management\Entity\CompanyAppInterface $entity */
  $controller = $this->teamAppControllerFactory
    ->teamAppController($entity
    ->getCompanyName());
  $controller
    ->update($entity);
}