public function TawkToCacheManager::getCacheTags in Tawk.to - Live chat application (Drupal 8) 8.2
Same name and namespace in other branches
- 8 src/Cache/TawkToCacheManager.php \Drupal\tawk_to\Cache\TawkToCacheManager::getCacheTags()
Gets cache tags based on the module settings and context plugins tags.
Return value
array The cache tags.
File
- src/
Cache/ TawkToCacheManager.php, line 36
Class
- TawkToCacheManager
- Defines the cache manager tawk.to service.
Namespace
Drupal\tawk_to\CacheCode
public function getCacheTags() {
$tags = [
'config:tawk_to.settings',
];
$conditions = $this->conditionsPluginsHandler
->getConditions();
foreach ($conditions as $condition) {
if ($condition instanceof CacheableDependencyInterface) {
$tags = array_merge($tags, $condition
->getCacheTags());
}
}
return $tags;
}