ModuleViewHelper

final class \TYPO3\CMS\Fluid\ViewHelpers\Asset\ModuleViewHelper

Extends
AbstractViewHelper

ViewHelper to add JavaScript modules to the TYPO3 AssetCollector.

Examples

::

<f:asset.module identifier="@my/package/filename.js"/>

Details

In the AssetCollector, the "identifier" attribute is used as a unique identifier. Thus, if modules are added multiple times using the same module identifier, the asset will only be served once.

Tags

see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-asset-module

Table of Contents

Methods

__construct()  : mixed
initializeArguments()  : void
render()  : string

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string

Return values

string
On this page