DefaultJavaScriptAssetTrait

Trait used to add default JavaScript in frontend rendering context while considering TypoScript setting `config.removeDefaultJS` as well.

Internal

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
bool

shallRemoveDefaultFrontendJavaScript()

protected shallRemoveDefaultFrontendJavaScript() : bool
Return values
bool

        
On this page

Search results