Pimcore\Model\Element\AbstractElement::getCacheTags PHP Method

getCacheTags() public method

Get the cache tags for the element, resolve all dependencies to tag the cache entries This is necessary to update the cache if there is a change in an depended object
public getCacheTags ( array $tags = [] ) : array
$tags array
return array
    public function getCacheTags($tags = [])
    {
        $tags = is_array($tags) ? $tags : [];
        $tags[$this->getCacheTag()] = $this->getCacheTag();
        return $tags;
    }