public function AppController::listAppIds in Apigee Edge 8
File
- src/
Entity/ Controller/ AppController.php, line 114
Class
- AppController
- Definition of the App controller service.
Namespace
Drupal\apigee_edge\Entity\ControllerCode
public function listAppIds(PagerInterface $pager = NULL) : array {
if ($this->appIdCache
->isAllIdsInCache()) {
if ($pager === NULL) {
return $this->appIdCache
->getIds();
}
else {
return $this
->extractSubsetOfAssociativeArray($this->appIdCache
->getIds(), $pager
->getLimit(), $pager
->getStartKey());
}
}
$ids = $this
->decorated()
->listAppIds($pager);
$this->appIdCache
->saveIds($ids);
$this->appIdCache
->allIdsInCache(TRUE);
return $ids;
}