registerArgument( 'key', 'string', 'The name of the requested preference', true ); } /** * -- This method is expected by Fluid -- * Renders the content as html * * @return array * @throws NoSuchWebsiteException */ public function render(): array { $website = $this->otWebsiteRepository->getCurrentWebsiteFromFEGlobals(); $preferences = $this->templateRepository->getTemplatePreferences($website); $key = $this->arguments['key']; return $preferences[$key]; } }