You are here

public function AppController::listAppIdsByStatus in Apigee Edge 8

File

src/Entity/Controller/AppController.php, line 180

Class

AppController
Definition of the App controller service.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function listAppIdsByStatus(string $status, PagerInterface $pager = NULL) : array {
  $apps_from_cache = $this
    ->getAppsFromCacheByStatus($status, $pager);
  if ($apps_from_cache !== NULL) {
    return array_map(function (AppInterface $app) {
      return $app
        ->id();
    }, $apps_from_cache);
  }
  return $this
    ->decorated()
    ->listAppIdsByStatus($status, $pager);
}