You are here

protected function TeamStorage::entityController in Apigee Edge 8

Returns the wrapped controller instance used by this storage.

Return value

\Drupal\apigee_edge\Entity\Controller\EdgeEntityControllerInterface The entity controller interface with CRUDL capabilities.

Overrides EdgeEntityStorageBase::entityController

File

modules/apigee_edge_teams/src/Entity/Storage/TeamStorage.php, line 115

Class

TeamStorage
Entity storage implementation for teams.

Namespace

Drupal\apigee_edge_teams\Entity\Storage

Code

protected function entityController() : EdgeEntityControllerInterface {
  if ($this->teamController instanceof EntityCacheAwareControllerInterface) {
    return new CachedManagementApiEdgeEntityControllerProxy($this->teamController);
  }
  return new ManagementApiEdgeEntityControllerProxy($this->teamController);
}