ResourceViewHelper

final class \TYPO3\CMS\Fluid\ViewHelpers\Uri\ResourceViewHelper

Extends
AbstractViewHelper

ViewHelper for creating URIs to resources (assets).

This ViewHelper should be used to return public url to extension resource files for use in html output.

For images within FAL storages, or where graphical operations are performed, use <f:uri.image> instead.

  <link href="{f:resource(identifier: 'EXT:indexed_search/Resources/Public/Css/Stylesheet.css') -> f:uri.resource()}" rel="stylesheet" />

Tags

see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-uri-resource
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-uri-image

Table of Contents

Methods

__construct()  : mixed
getContentArgumentName()  : string
Explicitly set argument name to be used as content.
initializeArguments()  : void
render()  : string
Render the URI to the resource. The filename is used from child content.

Methods

getContentArgumentName()

Explicitly set argument name to be used as content.

public getContentArgumentName() : string

Return values

string

initializeArguments()

public initializeArguments() : void

render()

Render the URI to the resource. The filename is used from child content.

public render() : string

Return values

string —

The URI to the resource

On this page