DefaultJavaScriptAssetTrait
Trait used to add default JavaScript in frontend rendering context while considering TypoScript setting `config.removeDefaultJS` as well.
only to be used in EXT:frontend and TYPO3 Core, not part of TYPO3 Core API.
Table of Contents
Properties
- $defaultFrontendJavaScriptFile : string
Methods
- addDefaultFrontendJavaScript() : void
- shallExportDefaultFrontendJavaScript() : bool
- shallRemoveDefaultFrontendJavaScript() : bool
Properties
$defaultFrontendJavaScriptFile
protected
string
$defaultFrontendJavaScriptFile
= 'EXT:frontend/Resources/Public/JavaScript/default_frontend.js'
Methods
addDefaultFrontendJavaScript()
protected
addDefaultFrontendJavaScript() : void
shallExportDefaultFrontendJavaScript()
protected
shallExportDefaultFrontendJavaScript() : bool
Return values
boolshallRemoveDefaultFrontendJavaScript()
protected
shallRemoveDefaultFrontendJavaScript() : bool