NormalizedUrlViewHelper extends AbstractViewHelper uses CompileWithContentArgumentAndRenderStatic

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <core:normalizedurl>

Normalizes a path that uses EXT: syntax or an absolute URL to an absolute web path

Examples

Url::

<core:normalizedUrl pathOrUrl="https://foo.bar/img.jpg" />

Output::

https://foo.bar/img.jpg

Path::

<core:normalizedUrl pathOrUrl="EXT:core/Resources/Public/Images/typo3_black.svg" />

Output::

/typo3/sysext/core/Resources/Public/Images/typo3_black.svg
Internal

Table of Contents

Methods

initializeArguments()  : mixed
Initializes the arguments
renderStatic()  : string
Ouputs what is given as URL or extension relative path as absolute URL

Methods

initializeArguments()

Initializes the arguments

public initializeArguments() : mixed

renderStatic()

Ouputs what is given as URL or extension relative path as absolute URL

public static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Return values
string

        
On this page

Search results