Classes/Service/TypoScriptFrontendService.php
public function getTags(): array
    {
        $tsfe = $this->getTsfe();
        if (!($tsfe instanceof TypoScriptFrontendController)) {
            return [];
        }

        return \array_unique((array)ObjectAccess::getProperty($tsfe, 'pageCacheTags', true));
    }
public function getTags(): array
    {
        $tsfe = $this->getTsfe();
        if (!($tsfe instanceof TypoScriptFrontendController)) {
            return [];
        }

        return \array_unique((array)ObjectAccess::getProperty($tsfe, 'pageCacheTags', true));
    }
public function getTags ( ) : array { $ tsfe = $ this -> getTsfe ( ) ; if ( ! ( $ tsfe instanceof TypoScriptFrontendController ) ) { return [ ] ; } return \ array_unique ( ( array ) ObjectAccess :: getProperty ( $ tsfe , 'pageCacheTags' , true ) ) ; }
Get the tags and respect the configuration.

@return array
Get the tags and respect the configuration .