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