You are here

protected function DeveloperStorage::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

src/Entity/Storage/DeveloperStorage.php, line 101

Class

DeveloperStorage
Entity storage implementation for developers.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

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