protected function TeamAppStorage::getCacheTagsByOwner in Apigee Edge 8
Returns app owner related cache tags for an app.
These cache tags gets added to the generated app cache entry which ensures when app's owner gets deleted the related app cache entries gets invalidated as well.
Parameters
\Drupal\apigee_edge\Entity\AppInterface $app: The app entity.
Return value
array Array of app owner related cache entries.
Overrides AppStorage::getCacheTagsByOwner
See also
getPersistentCacheTags()
getPersistentCacheTagsForAppName()
File
- modules/
apigee_edge_teams/ src/ Entity/ Storage/ TeamAppStorage.php, line 92
Class
- TeamAppStorage
- Entity storage class for Team app entities.
Namespace
Drupal\apigee_edge_teams\Entity\StorageCode
protected function getCacheTagsByOwner(AppInterface $app) : array {
// Add team's name to ensure when the owner of the app (team)
// gets deleted then _all_ its cached team app data gets purged along with
// it.
return [
"team:{$app->getAppOwner()}",
];
}