ResourceViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:uri.resource>
FinalYes
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
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
__construct()
public
__construct(SystemResourceFactory $systemResourceFactory, SystemResourcePublisherInterface $resourcePublisher, SystemResourceIdentifierFactory $resourceIdentifierFactory) : mixed
Parameters
- $systemResourceFactory : SystemResourceFactory
- $resourcePublisher : SystemResourcePublisherInterface
- $resourceIdentifierFactory : SystemResourceIdentifierFactory
getContentArgumentName()
Explicitly set argument name to be used as content.
public
getContentArgumentName() : string
Return values
stringinitializeArguments()
public
initializeArguments() : void
render()
Render the URI to the resource. The filename is used from child content.
public
render() : string
Tags
Return values
string —The URI to the resource