Templating/Helper/Action/ActionHelper.php
public function getActionUrl(ActionOptions $actionOptions, array $contextOptions)
    {
        $url = $actionOptions->url;
        if (!$url && $actionOptions->route) {
            $routeParameters = $actionOptions->routeParams;
            if (\array_key_exists('item', $contextOptions)) {
                $routeParameters = $this->applyParameters($contextOptions['item'], $routeParameters);
            }
            $url = $this->urlGenerator->generate($actionOptions->route, $routeParameters);
        }

        return $url;
    }
public function getActionUrl(ActionOptions $actionOptions, array $contextOptions)
    {
        $url = $actionOptions->url;
        if (!$url && $actionOptions->route) {
            $routeParameters = $actionOptions->routeParams;
            if (\array_key_exists('item', $contextOptions)) {
                $routeParameters = $this->applyParameters($contextOptions['item'], $routeParameters);
            }
            $url = $this->urlGenerator->generate($actionOptions->route, $routeParameters);
        }

        return $url;
    }
@param ActionOptions $actionOptions
@param array         $contextOptions

@return string