public static function getIsSiteManagedSite($pageId)
    {

        $siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
        try {
            $site = $siteFinder->getSiteByPageId($pageId);
        } catch (SiteNotFoundException $e) {
            return false;
        }

        return $site instanceof Site;
    }
public static function getIsSiteManagedSite($pageId)
    {

        $siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
        try {
            $site = $siteFinder->getSiteByPageId($pageId);
        } catch (SiteNotFoundException $e) {
            return false;
        }

        return $site instanceof Site;
    }
public static function getIsSiteManagedSite ( $ pageId ) { $ siteFinder = GeneralUtility :: makeInstance ( SiteFinder :: class ) ; try { $ site = $ siteFinder -> getSiteByPageId ( $ pageId ) ; } catch ( SiteNotFoundException $ e ) { return false ; } return $ site instanceof Site ; }
Determines if the site where the page belongs to is managed with the TYPO3 site management.

@return boolean
Determines if the site where the page belongs to is managed with the TYPO3 site management .