NormalizedUrlViewHelper

final class \TYPO3\CMS\Core\ViewHelpers\NormalizedUrlViewHelper

Extends
AbstractViewHelper

ViewHelper to normalize a path that uses EXT: syntax or an absolute URL to an absolute web path.

   <core:normalizedUrl pathOrUrl="https://foo.bar/img.jpg" />
   <core:normalizedUrl pathOrUrl="EXT:core/Resources/Public/Images/typo3_black.svg" />

Tags

see
https://docs.typo3.org/permalink/t3viewhelper:typo3-core-normalizedurl

Table of Contents

Methods

__construct()  : mixed
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