src/JumpGate/Menu/Container.php
public function render($menuName)
    {
        // We set active at the last possible moment.
        $this->updateActive();

        $menu = $this->getMenuObject($menuName);

        if (! $menu) {
            throw new \Exception("Menu {$menuName} not found.");
        }

        return $menu;
    }
public function render($menuName)
    {
        // We set active at the last possible moment.
        $this->updateActive();

        $menu = $this->getMenuObject($menuName);

        if (! $menu) {
            throw new \Exception("Menu {$menuName} not found.");
        }

        return $menu;
    }
public function render ( $ menuName ) { // We set active at the last possible moment. $ this -> updateActive ( ) ; $ menu = $ this -> getMenuObject ( $ menuName ) ; if ( ! $ menu ) { throw new \ Exception ( "Menu {$menuName} not found." ) ; } return $ menu ; }
Update the active and order values and then return the object.

@param $menuName

@return Menu
@throws \Exception
Update the active and order values and then return the object .