NormalizedUrlViewHelper extends AbstractViewHelper

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

getContentArgumentName()  : string
Explicitly set argument name to be used as content.
initializeArguments()  : void
render()  : string
Output what is given as URL or extension relative path as absolute URL

Methods

getContentArgumentName()

Explicitly set argument name to be used as content.

public getContentArgumentName() : string
Return values
string

initializeArguments()

public initializeArguments() : void

render()

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

public render() : string
Return values
string

        
On this page

Search results