PHP Class Neos\Neos\ViewHelpers\Uri\ModuleViewHelper

= Examples =
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$uriBuilder Neos\Flow\Mvc\Routing\UriBuilder

Méthodes publiques

Méthode Description
render ( string $path, string $action = null, array $arguments = [], string $section = '', string $format = '', array $additionalParams = [], boolean $addQueryString = false, array $argumentsToBeExcludedFromQueryString = [] ) : string Render a link to a specific module

Méthodes protégées

Méthode Description
setMainRequestToUriBuilder ( ) : void Extracted out to this method in order to be better unit-testable.

Method Details

render() public méthode

Render a link to a specific module
public render ( string $path, string $action = null, array $arguments = [], string $section = '', string $format = '', array $additionalParams = [], boolean $addQueryString = false, array $argumentsToBeExcludedFromQueryString = [] ) : string
$path string Target module path
$action string Target module action
$arguments array Arguments
$section string The anchor to be added to the URI
$format string The requested format, e.g. ".html"
$additionalParams array additional query parameters that won't be prefixed like $arguments (overrule $arguments)
$addQueryString boolean If set, the current query parameters will be kept in the URI
$argumentsToBeExcludedFromQueryString array arguments to be removed from the URI. Only active if $addQueryString = TRUE
Résultat string The rendered link

setMainRequestToUriBuilder() protected méthode

Extracted out to this method in order to be better unit-testable.
protected setMainRequestToUriBuilder ( ) : void
Résultat void

Property Details

$uriBuilder protected_oe property

protected UriBuilder,Neos\Flow\Mvc\Routing $uriBuilder
Résultat Neos\Flow\Mvc\Routing\UriBuilder