MediaWiki REL1_34
ResourceLoaderSiteModule.php
Go to the documentation of this file.
1<?php
30
37 protected function getPages( ResourceLoaderContext $context ) {
38 $pages = [];
39 if ( $this->getConfig()->get( 'UseSiteJs' ) ) {
40 $pages['MediaWiki:Common.js'] = [ 'type' => 'script' ];
41 $pages['MediaWiki:' . ucfirst( $context->getSkin() ) . '.js'] = [ 'type' => 'script' ];
42 }
43 return $pages;
44 }
45
51 return [ 'site.styles' ];
52 }
53}
Context object that contains information about the state of a specific ResourceLoader web request.
Module for site customizations.
getPages(ResourceLoaderContext $context)
Get list of pages used by this module.
getDependencies(ResourceLoaderContext $context=null)
Abstraction for ResourceLoader modules which pull from wiki pages.
$context
Definition load.php:45