You are here

function _d8cache_entity_get_cache_tags in Drupal 8 Cache Backport 7

Get cache tags for an entity.

2 calls to _d8cache_entity_get_cache_tags()
d8cache_entity_view in includes/entity.inc
Implements hook_entity_view().
_d8cache_entity_invalidate_cache_tags in includes/entity.inc
Invalidate entity specific cache tags.

File

includes/entity.inc, line 120
Entity functions and hooks for the D8 caching system backport.

Code

function _d8cache_entity_get_cache_tags($entity_type, $entity) {
  list($entity_id, , ) = entity_extract_ids($entity_type, $entity);
  return array(
    $entity_type . ':' . $entity_id,
  );
}