You are here

public function AppControllerBase::entityCache in Apigee Edge 8

Returns the entity cache used by the controller.

Return value

\Drupal\apigee_edge\Entity\Controller\Cache\EntityCacheInterface The entity cache.

Overrides EntityCacheAwareControllerInterface::entityCache

File

src/Entity/Controller/AppControllerBase.php, line 74

Class

AppControllerBase
Base class for all app controller services in Drupal.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function entityCache() : EntityCacheInterface {

  // Developer apps should always expose the app cache as their entity cache
  // because this stores the actual app objects.
  return $this->appCache;
}