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(ServerRequestInterface $request) : void
Parameters
$request : ServerRequestInterface

shallExportDefaultFrontendJavaScript()

protected shallExportDefaultFrontendJavaScript(ServerRequestInterface $request) : bool
Parameters
$request : ServerRequestInterface
Return values
bool

shallRemoveDefaultFrontendJavaScript()

protected shallRemoveDefaultFrontendJavaScript(ServerRequestInterface $request) : bool
Parameters
$request : ServerRequestInterface
Return values
bool

        
On this page

Search results