getCurrentSiteRootPageId(); $templateRepository = GeneralUtility::makeInstance(TemplateRepository::class); return $templateRepository->getCurrentTemplate($rootUid); } }