Pimcore\Model\Document\Hardlink::getCacheTags PHP Method

getCacheTags() public method

Resolves dependencies and create tags for caching out of them
public getCacheTags ( $tags = [] ) : array
return array
    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;
    }