src/Sulu/Bundle/HttpCacheBundle/EventSubscriber/TagsSubscriber.php
public function addTags(): void
    {
        $tags = $this->getTags();
        $currentStructureUuid = $this->getCurrentStructureUuid();
        if ($currentStructureUuid && !in_array($currentStructureUuid, $tags)) {
            $tags[] = $currentStructureUuid;
        }

        if (count($tags) <= 0) {
            return;
        }

        $this->symfonyResponseTagger->addTags($tags);
    }
public function addTags(): void
    {
        $tags = $this->getTags();
        $currentStructureUuid = $this->getCurrentStructureUuid();
        if ($currentStructureUuid && !in_array($currentStructureUuid, $tags)) {
            $tags[] = $currentStructureUuid;
        }

        if (count($tags) <= 0) {
            return;
        }

        $this->symfonyResponseTagger->addTags($tags);
    }
public function addTags ( ) : void { $ tags = $ this -> getTags ( ) ; $ currentStructureUuid = $ this -> getCurrentStructureUuid ( ) ; if ( $ currentStructureUuid && ! in_array ( $ currentStructureUuid , $ tags ) ) { $ tags [ ] = $ currentStructureUuid ; } if ( count ( $ tags ) <= 0 ) { return ; } $ this -> symfonyResponseTagger -> addTags ( $ tags ) ; }
Adds tags from the reference store to the response tagger.
Adds tags from the reference store to the response tagger .