registerArgument('for', 'string', 'path in Menu.yaml', false); $this->registerArgument('as', 'string', 'Name in Frontend', false); } /** * @return string */ public function render(): string { $this->templateVariableContainer->add( $this->arguments['as'], $this->menuService->getItems($this->arguments['for']) ); return $this->renderChildren(); } }