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>

FinalYes

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()  : void
renderStatic()  : string
Output what is given as URL or extension relative path as absolute URL
resolveContentArgumentName()  : string
Explicitly set argument name to be used as content.

Methods

initializeArguments()

public initializeArguments() : void

renderStatic()

Output 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

resolveContentArgumentName()

Explicitly set argument name to be used as content.

public resolveContentArgumentName() : string
Return values
string

        
On this page

Search results