ResourceViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:uri.resource>
A ViewHelper for creating URIs to resources.
This ViewHelper should be used for extension resource files.
For images within FAL storages, or where graphical operations are
performed, use :ref:<f:uri.image> <typo3-fluid-uri-image>
instead.
Examples
Best practice with EXT: syntax
::
Output::
Preferred syntax that works in both extbase and non-extbase context.
Defaults
::
Output::
Works only in extbase context since it uses the extbase request to find current extension, magically adds 'Resources/Public' to path.
With extension name
::
Output::
Magically adds 'Resources/Public' to path.
Table of Contents
Methods
- initializeArguments() : void
- renderStatic() : string
- Render the URI to the resource. The filename is used from child content.
Methods
initializeArguments()
public
initializeArguments() : void
renderStatic()
Render the URI to the resource. The filename is used from child content.
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface
Tags
Return values
string —The URI to the resource