AddJavaScriptModulesEvent

FinalYes

Collects additional JavaScript modules to be loaded in SetupModuleController.

Table of Contents

Methods

__construct()  : mixed
addJavaScriptModule()  : void
getJavaScriptModules()  : array<string|int, string>
getRequest()  : ServerRequestInterface

Methods

__construct()

public __construct(ServerRequestInterface $request) : mixed
Parameters
$request : ServerRequestInterface

addJavaScriptModule()

public addJavaScriptModule(string $specifier) : void
Parameters
$specifier : string

Bare module identifier like @my/package/filename.js

getJavaScriptModules()

public getJavaScriptModules() : array<string|int, string>
Return values
array<string|int, string>

getRequest()

public getRequest() : ServerRequestInterface
Return values
ServerRequestInterface

        
On this page

Search results