Classes/ViewHelpers/Widget/LinkViewHelper.php
protected function getWidgetUri()
    {
        $uriBuilder = $this->controllerContext->getUriBuilder();
        $argumentPrefix = $this->controllerContext->getRequest()->getArgumentPrefix();
        $arguments = $this->hasArgument('arguments') ? $this->arguments['arguments'] : [];
        if ($this->hasArgument('action')) {
            $arguments['action'] = $this->arguments['action'];
        }
        if ($this->hasArgument('format') && $this->arguments['format'] !== '') {
            $arguments['format'] = $this->arguments['format'];
        }
        if ($this->hasArgument('addQueryStringMethod') && $this->arguments['addQueryStringMethod'] !== '') {
            $arguments['addQueryStringMethod'] = $this->arguments['addQueryStringMethod'];
        }
        $uriBuilder->reset()
            ->setArguments([$argumentPrefix => $arguments])
            ->setSection($this->arguments['section'])
            ->setAddQueryString(true)
            ->setArgumentsToBeExcludedFromQueryString([$argumentPrefix, 'cHash'])
            ->setFormat($this->arguments['format']);

        // TYPO3 6.0 compatibility check:
        if (method_exists($uriBuilder, 'setAddQueryStringMethod')) {
            $uriBuilder->setAddQueryStringMethod($this->arguments['addQueryStringMethod']);
        }

        return $uriBuilder->build();
    }
protected function getWidgetUri()
    {
        $uriBuilder = $this->controllerContext->getUriBuilder();
        $argumentPrefix = $this->controllerContext->getRequest()->getArgumentPrefix();
        $arguments = $this->hasArgument('arguments') ? $this->arguments['arguments'] : [];
        if ($this->hasArgument('action')) {
            $arguments['action'] = $this->arguments['action'];
        }
        if ($this->hasArgument('format') && $this->arguments['format'] !== '') {
            $arguments['format'] = $this->arguments['format'];
        }
        if ($this->hasArgument('addQueryStringMethod') && $this->arguments['addQueryStringMethod'] !== '') {
            $arguments['addQueryStringMethod'] = $this->arguments['addQueryStringMethod'];
        }
        $uriBuilder->reset()
            ->setArguments([$argumentPrefix => $arguments])
            ->setSection($this->arguments['section'])
            ->setAddQueryString(true)
            ->setArgumentsToBeExcludedFromQueryString([$argumentPrefix, 'cHash'])
            ->setFormat($this->arguments['format']);

        // TYPO3 6.0 compatibility check:
        if (method_exists($uriBuilder, 'setAddQueryStringMethod')) {
            $uriBuilder->setAddQueryStringMethod($this->arguments['addQueryStringMethod']);
        }

        return $uriBuilder->build();
    }
protected function getWidgetUri ( ) { $ uriBuilder = $ this -> controllerContext -> getUriBuilder ( ) ; $ argumentPrefix = $ this -> controllerContext -> getRequest ( ) -> getArgumentPrefix ( ) ; $ arguments = $ this -> hasArgument ( 'arguments' ) ? $ this -> arguments [ 'arguments' ] : [ ] ; if ( $ this -> hasArgument ( 'action' ) ) { $ arguments [ 'action' ] = $ this -> arguments [ 'action' ] ; } if ( $ this -> hasArgument ( 'format' ) && $ this -> arguments [ 'format' ] !== '' ) { $ arguments [ 'format' ] = $ this -> arguments [ 'format' ] ; } if ( $ this -> hasArgument ( 'addQueryStringMethod' ) && $ this -> arguments [ 'addQueryStringMethod' ] !== '' ) { $ arguments [ 'addQueryStringMethod' ] = $ this -> arguments [ 'addQueryStringMethod' ] ; } $ uriBuilder -> reset ( ) -> setArguments ( [ $ argumentPrefix => $ arguments ] ) -> setSection ( $ this -> arguments [ 'section' ] ) -> setAddQueryString ( true ) -> setArgumentsToBeExcludedFromQueryString ( [ $ argumentPrefix , 'cHash' ] ) -> setFormat ( $ this -> arguments [ 'format' ] ) ; // TYPO3 6.0 compatibility check: if ( method_exists ( $ uriBuilder , 'setAddQueryStringMethod' ) ) { $ uriBuilder -> setAddQueryStringMethod ( $ this -> arguments [ 'addQueryStringMethod' ] ) ; } return $ uriBuilder -> build ( ) ; }
Gets the URI for a non-Ajax Request.

@return string the Widget URI
Gets the URI for a non - Ajax Request .