RequireJsModuleInterface
In case a widget should provide additional requireJS modules, the widget must implement this interface.
migrate to JavaScriptInstructionInterface in TYPO3 v12.0
Tags
Table of Contents
Methods
- getRequireJsModules() : array<int, string>|array<string, string>
- This method returns an array with requireJs modules.
Methods
getRequireJsModules()
This method returns an array with requireJs modules.
public
getRequireJsModules() : array<int, string>|array<string, string>
e.g. [ 'TYPO3/CMS/Backend/Modal', 'TYPO3/CMS/MyExt/FooBar' => 'function(FooBar) { ... }' ]