public function getCacheTags($tags = [])
{
$tags = is_array($tags) ? $tags : [];
$tags = parent::getCacheTags($tags);
if ($this->getSourceDocument()) {
if ($this->getSourceDocument()->getId() != $this->getId() and !array_key_exists($this->getSourceDocument()->getCacheTag(), $tags)) {
$tags = $this->getSourceDocument()->getCacheTags($tags);
}
}
return $tags;
}