MediaWiki REL1_31
ResourceLoaderEditToolbarModule.php
Go to the documentation of this file.
1<?php
37 $vars = parent::getLessVars( $context );
38 $language = Language::factory( $context->getLanguage() );
39 foreach ( $language->getImageFiles() as $key => $value ) {
40 $vars[$key] = CSSMin::serializeStringValue( $value );
41 }
42 return $vars;
43 }
44}
Object passed around to modules which contains information about the state of a specific loader reque...
ResourceLoader module for the edit toolbar.
getLessVars(ResourceLoaderContext $context)
Get language-specific LESS variables for this module.
ResourceLoader module based on local JavaScript/CSS files.
static configuration should be added through ResourceLoaderGetConfigVars instead & $vars
Definition hooks.txt:2228
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