public function dispatch($options)
    {
        // We will also check for a "route" or "action" parameter on the array so that
        // developers can easily specify a route or controller action when creating the
        // menus.
        if (isset($options['url'])) {
            return $this->getUrl($options);
        } elseif (isset($options['route'])) {
            return $this->getRoute($options['route']);
        }

        // If an action is available, we are attempting to point the link to controller
        // action route. So, we will use the URL generator to get the path to these
        // actions and return them from the method. Otherwise, we'll use current.
        elseif (isset($options['action'])) {
            return $this->getControllerAction($options['action']);
        }

        return null;
    }
public function dispatch($options)
    {
        // We will also check for a "route" or "action" parameter on the array so that
        // developers can easily specify a route or controller action when creating the
        // menus.
        if (isset($options['url'])) {
            return $this->getUrl($options);
        } elseif (isset($options['route'])) {
            return $this->getRoute($options['route']);
        }

        // If an action is available, we are attempting to point the link to controller
        // action route. So, we will use the URL generator to get the path to these
        // actions and return them from the method. Otherwise, we'll use current.
        elseif (isset($options['action'])) {
            return $this->getControllerAction($options['action']);
        }

        return null;
    }
public function dispatch ( $ options ) { // We will also check for a "route" or "action" parameter on the array so that // developers can easily specify a route or controller action when creating the // menus. if ( isset ( $ options [ 'url' ] ) ) { return $ this -> getUrl ( $ options ) ; } elseif ( isset ( $ options [ 'route' ] ) ) { return $ this -> getRoute ( $ options [ 'route' ] ) ; } // If an action is available, we are attempting to point the link to controller // action route. So, we will use the URL generator to get the path to these // actions and return them from the method. Otherwise, we'll use current. elseif ( isset ( $ options [ 'action' ] ) ) { return $ this -> getControllerAction ( $ options [ 'action' ] ) ; } return null ; }
Get the form action from the options.

@return string
Get the form action from the options .