public function getMenu(string $name, ViewInterface $view = null)
    {
        $menu = $this->menuFactory->getMenu($name);

        return $this->environment->render($menu->get('template'), [
            'menu' => $menu,
            'admin' => $view,
        ]);
    }