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
- trait \Drupal\apigee_edge\Entity\Controller\EntityCacheAwareControllerTrait
See also
\Drupal\apigee_edge\Entity\Controller\EntityCacheAwareControllerInterface
File
- src/
Entity/ Controller/ EntityCacheAwareControllerTrait.php, line 33
Namespace
Drupal\apigee_edge\Entity\ControllerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityCacheAwareControllerTrait:: |
abstract public | function | Returns the entity cache used by the controller. | 4 |