You are here

public function AppController::loadApp in Apigee Edge 8

File

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

Class

AppController
Definition of the App controller service.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function loadApp(string $app_id) : AppInterface {
  $app = $this->appCache
    ->getEntity($app_id);
  if ($app === NULL) {
    $app = $this
      ->decorated()
      ->loadApp($app_id);
    $this->appCache
      ->saveEntities([
      $app,
    ]);
  }
  return $app;
}