private function AppStorage::getPersistentCacheTagsForAppName in Apigee Edge 8
Generates cache tags for an app.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: App entity.
Return value
array Array of cache tags.
1 call to AppStorage::getPersistentCacheTagsForAppName()
- AppStorage::setPersistentCache in src/
Entity/ Storage/ AppStorage.php - Stores entities in the persistent cache backend.
File
- src/
Entity/ Storage/ AppStorage.php, line 178
Class
- AppStorage
- Base entity storage class for developer and team (company) app entities.
Namespace
Drupal\apigee_edge\Entity\StorageCode
private function getPersistentCacheTagsForAppName(EntityInterface $entity) {
/** @var \Drupal\apigee_edge\Entity\AppInterface $entity */
$cache_tags = array_merge([
"{$this->entityTypeId}",
"{$this->entityTypeId}:app_names",
"{$this->entityTypeId}:{$entity->id()}",
"{$this->entityTypeId}:{$entity->id()}:app_name",
], $this
->getCacheTagsByOwner($entity));
return $cache_tags;
}