You are here

public function RestfulEntityBase::getEntityCacheTags in RESTful 7

The array of parameters by which entities should be cached.

Parameters

mixed $entity_id: The entity ID of the entity to be cached.

Return value

array An array of parameter keys and values which should be added to the cache key for each entity.

1 call to RestfulEntityBase::getEntityCacheTags()
RestfulEntityBase::viewEntity in plugins/restful/RestfulEntityBase.php
View an entity.

File

plugins/restful/RestfulEntityBase.php, line 367
Contains RestfulEntityBase.

Class

RestfulEntityBase
An abstract implementation of RestfulEntityInterface.

Code

public function getEntityCacheTags($entity_id) {
  return array(
    'et' => $this
      ->getEntityType(),
    'ei' => $entity_id,
  );
}