MediaWiki
1.34.0
ResourceLoaderSiteStylesModule.php
Go to the documentation of this file.
1
<?php
29
class
ResourceLoaderSiteStylesModule
extends
ResourceLoaderWikiModule
{
30
37
protected
function
getPages
(
ResourceLoaderContext
$context
) {
38
$pages = [];
39
if
( $this->
getConfig
()->
get
(
'UseSiteCss'
) ) {
40
$pages[
'MediaWiki:Common.css'
] = [
'type'
=>
'style'
];
41
$pages[
'MediaWiki:'
. ucfirst(
$context
->getSkin() ) .
'.css'
] = [
'type'
=>
'style'
];
42
$pages[
'MediaWiki:Print.css'
] = [
'type'
=>
'style'
,
'media'
=>
'print'
];
43
44
}
45
return
$pages;
46
}
47
51
public
function
getType
() {
52
return
self::LOAD_STYLES;
53
}
54
58
public
function
getGroup
() {
59
return
'site'
;
60
}
61
}
ResourceLoaderContext
Context object that contains information about the state of a specific ResourceLoader web request.
Definition:
ResourceLoaderContext.php:33
ResourceLoaderSiteStylesModule\getPages
getPages(ResourceLoaderContext $context)
Get list of pages used by this module.
Definition:
ResourceLoaderSiteStylesModule.php:37
ResourceLoaderWikiModule
Abstraction for ResourceLoader modules which pull from wiki pages.
Definition:
ResourceLoaderWikiModule.php:53
ResourceLoaderSiteStylesModule\getType
getType()
Definition:
ResourceLoaderSiteStylesModule.php:51
ResourceLoaderSiteStylesModule\getGroup
getGroup()
Definition:
ResourceLoaderSiteStylesModule.php:58
$context
$context
Definition:
load.php:45
ResourceLoaderSiteStylesModule
Module for site style customizations.
Definition:
ResourceLoaderSiteStylesModule.php:29
ResourceLoaderModule\getConfig
getConfig()
Definition:
ResourceLoaderModule.php:200
includes
resourceloader
ResourceLoaderSiteStylesModule.php
Generated on Thu Dec 19 2019 14:54:46 for MediaWiki by
1.8.16