/**
* Render a link to a specific module
*
* @param string $path Target module path
* @param string $action Target module action
* @param array $arguments Arguments
* @param string $section The anchor to be added to the URI
* @param string $format The requested format, e.g. ".html"
* @param array $additionalParams additional query parameters that won't be prefixed like $arguments (overrule $arguments)
* @param boolean $addQueryString If set, the current query parameters will be kept in the URI
* @param array $argumentsToBeExcludedFromQueryString arguments to be removed from the URI. Only active if $addQueryString = TRUE
* @return string The rendered link
* @throws \Neos\FluidAdaptor\Core\ViewHelper\Exception
*/
public function render($path, $action = null, $arguments = array(), $section = '', $format = '', array $additionalParams = array(), $addQueryString = false, array $argumentsToBeExcludedFromQueryString = array())
{
$this->setMainRequestToUriBuilder();
$modifiedArguments = array('module' => $path);
if ($arguments !== array()) {
$modifiedArguments['moduleArguments'] = $arguments;
}
if ($action !== null) {
$modifiedArguments['moduleArguments']['@action'] = $action;
}
try {
return $this->uriBuilder->reset()->setSection($section)->setCreateAbsoluteUri(true)->setArguments($additionalParams)->setAddQueryString($addQueryString)->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)->setFormat($format)->uriFor('index', $modifiedArguments, 'Backend\\Module', 'Neos.Neos');
} catch (\Neos\Flow\Exception $exception) {
throw new \Neos\FluidAdaptor\Core\ViewHelper\Exception($exception->getMessage(), $exception->getCode(), $exception);
}
}