PHP Class Neos\FluidAdaptor\ViewHelpers\Format\UrlencodeViewHelper

See also: http://www.php.net/manual/function.urlencode.php = Examples = foo @+%/ foo%20%40%2B%25%2F (rawurlencode() applied) {text -> f:format.urlencode()} Url encoded text (rawurlencode() applied)
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$escapeChildren boolean

Public Methods

Method Description
render ( string $value = null ) : mixed Escapes special characters with their escaped counterparts as needed using PHPs urlencode() function.
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string Applies rawurlencode() on the specified value.

Method Details

render() public method

Escapes special characters with their escaped counterparts as needed using PHPs urlencode() function.
See also: http://www.php.net/manual/function.urlencode.php
public render ( string $value = null ) : mixed
$value string string to format
return mixed

renderStatic() public static method

Applies rawurlencode() on the specified value.
public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
return string

Property Details

$escapeChildren protected property

protected bool $escapeChildren
return boolean