You are here

public function HandyCacheTagsManager::getEntityTypeTagFromEntity in Handy cache tags 8

Gets entity type tags from the entity.

1 call to HandyCacheTagsManager::getEntityTypeTagFromEntity()
HandyCacheTagsManager::getEntityTags in src/HandyCacheTagsManager.php
Creates cache tags from entities.

File

src/HandyCacheTagsManager.php, line 36

Class

HandyCacheTagsManager
HandyCacheTagsManager service.

Namespace

Drupal\handy_cache_tags

Code

public function getEntityTypeTagFromEntity(EntityInterface $entity) {
  return $this
    ->getTag($entity
    ->getEntityTypeId());
}