You are here

public function DeveloperController::getDeveloperByApp in Apigee Edge 8

File

src/Entity/Controller/DeveloperController.php, line 155

Class

DeveloperController
Definition of the Developer controller service.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function getDeveloperByApp(string $app_name) : DeveloperInterface {
  $developer = $this
    ->decorated()
    ->getDeveloperByApp($app_name);

  // We do not keep cache entries about developer and app relationships so
  // we could not serve this request from cache but at least we add the
  // loaded developer to the cache here.
  $this->entityCache
    ->saveEntities([
    $developer,
  ]);
  return $developer;
}