You are here

public function DeveloperAppEdgeEntityControllerProxy::loadAll in Apigee Edge 8

Loads _all_ entities from Apigee Edge.

All entities, even on pagination enabled endpoints, this method must return all entities even it requires multiple API calls.

Return value

\Apigee\Edge\Entity\EntityInterface[] Array of entities.

Overrides EdgeEntityControllerInterface::loadAll

File

src/Entity/Controller/DeveloperAppEdgeEntityControllerProxy.php, line 113

Class

DeveloperAppEdgeEntityControllerProxy
Developer app specific entity controller implementation.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function loadAll() : array {
  return array_filter($this->appController
    ->listApps(TRUE), function (AppInterface $app) {
    return $app instanceof DeveloperAppInterface;
  });
}