ModuleViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:asset.module>
FinalYes
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.
Table of Contents
Properties
Methods
- initializeArguments() : void
- injectAssetCollector() : void
- render() : string
Properties
$assetCollector
protected
AssetCollector
$assetCollector
Methods
initializeArguments()
public
initializeArguments() : void
injectAssetCollector()
public
injectAssetCollector(AssetCollector $assetCollector) : void
Parameters
- $assetCollector : AssetCollector
render()
public
render() : string