Available from version 1.25.0 (Gerrit change 187986)
Removed in version 1.31.0 (Gerrit change 425273)
Allows to add context-based Less variables.
Define function:
public static function onResourceLoaderGetLessVars( array &$lessVars ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"ResourceLoaderGetLessVars": "MyExtensionHooks::onResourceLoaderGetLessVars"
Called from: File(s): resourceloader/ResourceLoader.php
Interface: ResourceLoaderGetLessVarsHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ResourceLoaderGetLessVars extensions.

Details edit

  • &$lessVars: An array of already added variables, which can be extended

See also edit