public function getMenuLinkRoutes($controller, $belongsTo = '')
    {
        $this->getAllMenuLinkRoutes();

        $routes = [];
        // Get routes of this post type
        if(isset($this->allMenuLinkRoutes[$controller][$belongsTo])) {
            $routes = $this->allMenuLinkRoutes[$controller][$belongsTo];
        }else if(isset($this->allMenuLinkRoutes[$controller])) {
            $routes = $this->allMenuLinkRoutes[$controller];
        }
        return $routes;
    }
public function getMenuLinkRoutes($controller, $belongsTo = '')
    {
        $this->getAllMenuLinkRoutes();

        $routes = [];
        // Get routes of this post type
        if(isset($this->allMenuLinkRoutes[$controller][$belongsTo])) {
            $routes = $this->allMenuLinkRoutes[$controller][$belongsTo];
        }else if(isset($this->allMenuLinkRoutes[$controller])) {
            $routes = $this->allMenuLinkRoutes[$controller];
        }
        return $routes;
    }
public function getMenuLinkRoutes ( $ controller , $ belongsTo = '' ) { $ this -> getAllMenuLinkRoutes ( ) ; $ routes = [ ] ; // Get routes of this post type if ( isset ( $ this -> allMenuLinkRoutes [ $ controller ] [ $ belongsTo ] ) ) { $ routes = $ this -> allMenuLinkRoutes [ $ controller ] [ $ belongsTo ] ; } else if ( isset ( $ this -> allMenuLinkRoutes [ $ controller ] ) ) { $ routes = $ this -> allMenuLinkRoutes [ $ controller ] ; } return $ routes ; }
Get menu Link Routes by post type or return default ones.

@param  string $controller
@param  string $belongsTo
@return array|mixed
@throws \Exception
Get menu Link Routes by post type or return default ones .