Pimcore\Model\Element\AbstractElement::getCacheTags PHP Méthode

getCacheTags() public méthode

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
Résultat array
    public function getCacheTags($tags = [])
    {
        $tags = is_array($tags) ? $tags : [];
        $tags[$this->getCacheTag()] = $this->getCacheTag();
        return $tags;
    }