MediaWiki REL1_34
ResourceLoaderSiteStylesModule.php
Go to the documentation of this file.
1<?php
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}
Context object that contains information about the state of a specific ResourceLoader web request.
Module for site style customizations.
getPages(ResourceLoaderContext $context)
Get list of pages used by this module.
Abstraction for ResourceLoader modules which pull from wiki pages.
$context
Definition load.php:45