registerArgument( 'slug', 'string', 'The slug of the researched page', true ); } /** * -- This method is expected by Fluid -- * Renders the content as html * * @return int|null */ public function render(): ?int { $rootId = $this->otWebsiteRepository->getCurrentRootpageUidFromFEGlobals(); $subpages = $this->otPageRepository->getAllSubpagesForPage($rootId); foreach ($subpages as $page) { if ($page['slug'] === $this->arguments['slug']) { return $page['uid']; } } return null; } }