Lavary\Menu\Builder::dispatch PHP Method

dispatch() public method

Get the form action from the options.
public dispatch ( $options ) : string
return string
    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']);
        } elseif (isset($options['action'])) {
            return $this->getControllerAction($options['action']);
        }
        return null;
    }