Neos\FluidAdaptor\ViewHelpers\Widget\LinkViewHelper::getWidgetUri PHP Method

getWidgetUri() protected method

Get the URI for a non-AJAX Request.
protected getWidgetUri ( ) : string
return string the Widget URI
    protected function getWidgetUri()
    {
        $uriBuilder = $this->controllerContext->getUriBuilder();
        $argumentsToBeExcludedFromQueryString = array('@package', '@subpackage', '@controller');
        $uriBuilder->reset()->setSection($this->arguments['section'])->setCreateAbsoluteUri(true)->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)->setFormat($this->arguments['format']);
        try {
            $uri = $uriBuilder->uriFor($this->arguments['action'], $this->arguments['arguments'], '', '', '');
        } catch (\Exception $exception) {
            throw new ViewHelper\Exception($exception->getMessage(), $exception->getCode(), $exception);
        }
        return $uri;
    }