‪TYPO3CMS  11.5
TYPO3\CMS\Core\Page\DefaultJavaScriptAssetTrait Class Reference
Inheritance diagram for TYPO3\CMS\Core\Page\DefaultJavaScriptAssetTrait:
TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject TYPO3\CMS\Frontend\Plugin\AbstractPlugin TYPO3\CMS\Frontend\ContentObject\Menu\TextMenuContentObject

Protected Member Functions

 addDefaultFrontendJavaScript ()
 
 shallRemoveDefaultFrontendJavaScript ()
 
 shallExportDefaultFrontendJavaScript ()
 

Protected Attributes

string $defaultFrontendJavaScriptFile = 'EXT:frontend/Resources/Public/JavaScript/default_frontend.js'
 

Detailed Description

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.

Definition at line 29 of file DefaultJavaScriptAssetTrait.php.

Member Function Documentation

◆ addDefaultFrontendJavaScript()

◆ shallExportDefaultFrontendJavaScript()

TYPO3\CMS\Core\Page\DefaultJavaScriptAssetTrait::shallExportDefaultFrontendJavaScript ( )
protected

◆ shallRemoveDefaultFrontendJavaScript()

TYPO3\CMS\Core\Page\DefaultJavaScriptAssetTrait::shallRemoveDefaultFrontendJavaScript ( )
protected

Member Data Documentation

◆ $defaultFrontendJavaScriptFile

string TYPO3\CMS\Core\Page\DefaultJavaScriptAssetTrait::$defaultFrontendJavaScriptFile = 'EXT:frontend/Resources/Public/JavaScript/default_frontend.js'
protected