protected function buildCacheTags(array $configuration, $typoScriptPath, $tsObject)
{
$cacheTags = [];
if (isset($configuration['entryTags'])) {
foreach ($configuration['entryTags'] as $tagKey => $tagValue) {
$tagValue = $this->runtime->evaluate($typoScriptPath . '/__meta/cache/entryTags/' . $tagKey, $tsObject);
if (is_array($tagValue)) {
$cacheTags = array_merge($cacheTags, $tagValue);
} elseif ((string) $tagValue !== '') {
$cacheTags[] = $tagValue;
}
}
foreach ($this->flushTags() as $tagKey => $tagValue) {
$cacheTags[] = $tagValue;
}
} else {
$cacheTags = [ContentCache::TAG_EVERYTHING];
}
return array_unique($cacheTags);
}