From: Timo Tijhof Date: Thu, 22 Mar 2018 03:34:40 +0000 (-0700) Subject: resourceloader: Document 'target' query param in StartupModule X-Git-Tag: 1.31.0-rc.0~285^2~1 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=0de0945cc8e9e4b5158c393b2e7ef1bd90694961;p=lhc%2Fweb%2Fwiklou.git resourceloader: Document 'target' query param in StartupModule Bug: T127268 Change-Id: I38150b2d82420f5058137d611c63e07cbd9c2f96 --- diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php b/includes/resourceloader/ResourceLoaderStartUpModule.php index e5fe928738..ae9520d1a6 100644 --- a/includes/resourceloader/ResourceLoaderStartUpModule.php +++ b/includes/resourceloader/ResourceLoaderStartUpModule.php @@ -1,7 +1,5 @@ + * + * The startup module, as being called only from ResourceLoaderClientHtml, has + * the ability to vary based extra query parameters, in addition to those + * from ResourceLoaderContext: + * + * - target: Only register modules in the client allowed within this target. + * Default: "desktop". + * See also: OutputPage::setTarget(), ResourceLoaderModule::getTargets(). + */ class ResourceLoaderStartUpModule extends ResourceLoaderModule { // Cache for getConfigSettings() as it's called by multiple methods