src/Sulu/Bundle/HttpCacheBundle/EventSubscriber/TagsSubscriber.php
private function getCurrentStructureUuid(): ?string
    {
        $request = $this->requestStack->getCurrentRequest();
        if (!$request) {
            return null;
        }

        $structure = $request->get('structure');
        if (!$structure || !$structure instanceof StructureInterface) {
            return null;
        }

        return $structure->getUuid();
    }
private function getCurrentStructureUuid(): ?string
    {
        $request = $this->requestStack->getCurrentRequest();
        if (!$request) {
            return null;
        }

        $structure = $request->get('structure');
        if (!$structure || !$structure instanceof StructureInterface) {
            return null;
        }

        return $structure->getUuid();
    }
private function getCurrentStructureUuid ( ) : ? string { $ request = $ this -> requestStack -> getCurrentRequest ( ) ; if ( ! $ request ) { return null ; } $ structure = $ request -> get ( 'structure' ) ; if ( ! $ structure || ! $ structure instanceof StructureInterface ) { return null ; } return $ structure -> getUuid ( ) ; }
Returns uuid of current structure.
Returns uuid of current structure .