public function HandyCacheTagsManager::getTag in Handy cache tags 8
Gets a tag from a string.
2 calls to HandyCacheTagsManager::getTag()
- HandyCacheTagsManager::getBundleTag in src/
HandyCacheTagsManager.php - Gets a bundle tag from a type and a bundle.
- HandyCacheTagsManager::getEntityTypeTagFromEntity in src/
HandyCacheTagsManager.php - Gets entity type tags from the entity.
File
- src/
HandyCacheTagsManager.php, line 43
Class
- HandyCacheTagsManager
- HandyCacheTagsManager service.
Namespace
Drupal\handy_cache_tagsCode
public function getTag($type) {
return sprintf('%s:%s', $this::CACHE_PREFIX, $type);
}