Neos\FluidAdaptor\ViewHelpers\Widget\UriViewHelper::render PHP Method

render() public method

Render the Uri.
public render ( string $action = null, array $arguments = [], string $section = '', string $format = '', boolean $ajax = false, boolean $includeWidgetContext = false ) : string
$action string Target action
$arguments array Arguments
$section string The anchor to be added to the URI
$format string The requested format, e.g. ".html"
$ajax boolean TRUE if the URI should be to an AJAX widget, FALSE otherwise.
$includeWidgetContext boolean TRUE if the URI should contain the serialized widget context (only useful for stateless AJAX widgets)
return string The rendered link
    public function render($action = null, $arguments = array(), $section = '', $format = '', $ajax = false, $includeWidgetContext = false)
    {
        if ($ajax === true) {
            return $this->getAjaxUri();
        } else {
            if ($action === null) {
                throw new ViewHelper\Exception('You have to specify the target action when creating a widget URI with the widget.uri ViewHelper', 1357648232);
            }
            return $this->getWidgetUri();
        }
    }