src/Project.php
public function getDocumentsMenu()
    {

        $yaml  = $this->files->get(Path::join($this->path, $this->ref, 'menu.yml'));
        $array = Yaml::parse($yaml);
        $this->factory->getMenus()->forget('project_sidebar_menu');

        $menu = $this->resolveDocumentsMenu($array[ 'menu' ]);
        $menu->setView('docit::menus/project-sidebar');
        $this->runHook('project:documents-menu', [ $this, $menu ]);

        return $menu;
    }
public function getDocumentsMenu()
    {

        $yaml  = $this->files->get(Path::join($this->path, $this->ref, 'menu.yml'));
        $array = Yaml::parse($yaml);
        $this->factory->getMenus()->forget('project_sidebar_menu');

        $menu = $this->resolveDocumentsMenu($array[ 'menu' ]);
        $menu->setView('docit::menus/project-sidebar');
        $this->runHook('project:documents-menu', [ $this, $menu ]);

        return $menu;
    }
public function getDocumentsMenu ( ) { $ yaml = $ this -> files -> get ( Path :: join ( $ this -> path , $ this -> ref , 'menu.yml' ) ) ; $ array = Yaml :: parse ( $ yaml ) ; $ this -> factory -> getMenus ( ) -> forget ( 'project_sidebar_menu' ) ; $ menu = $ this -> resolveDocumentsMenu ( $ array [ 'menu' ] ) ; $ menu -> setView ( 'docit::menus/project-sidebar' ) ; $ this -> runHook ( 'project:documents-menu' , [ $ this , $ menu ] ) ; return $ menu ; }
Returns the menu for this project

@return \Docit\Core\Menus\Menu
Returns the menu for this project