You are here

trait EntityCacheAwareControllerTrait in Apigee Edge 8

Trait for those entity controllers that supports entity caches.

This is the trait version of the EntityCacheAwareControllerInterface. This helps to depend on the entityCache() method in traits.

Hierarchy

See also

\Drupal\apigee_edge\Entity\Controller\EntityCacheAwareControllerInterface

File

src/Entity/Controller/EntityCacheAwareControllerTrait.php, line 33

Namespace

Drupal\apigee_edge\Entity\Controller
View source
trait EntityCacheAwareControllerTrait {

  /**
   * Returns the entity cache used by the controller.
   *
   * @return \Drupal\apigee_edge\Entity\Controller\Cache\EntityCacheInterface
   *   The entity cache.
   */
  public abstract function entityCache() : EntityCacheInterface;

}

Members

Namesort descending Modifiers Type Description Overrides
EntityCacheAwareControllerTrait::entityCache abstract public function Returns the entity cache used by the controller. 4