MediaWiki REL1_31
ResourceLoaderRawFileModule.php
Go to the documentation of this file.
1<?php
30
36 protected $raw = true;
37
45 $script = parent::getScript( $context );
46 // Add closure explicitly because raw modules can't be wrapped mw.loader.implement.
47 // Unlike with mw.loader.implement, this closure is immediately invoked.
48 // @see ResourceLoader::makeModuleResponse
49 // @see ResourceLoader::makeLoaderImplementScript
50 return "(function () {\n{$script}\n}());";
51 }
52}
Object passed around to modules which contains information about the state of a specific loader reque...
ResourceLoader module based on local JavaScript/CSS files.
getScript(ResourceLoaderContext $context)
Get all JavaScript code.
bool $raw
Enable raw mode to omit mw.loader.state() call as mw.loader does not yet exist when these modules exe...
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
Definition hooks.txt:2811