MediaWiki  master
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 
50  public function getDependencies( ResourceLoaderContext $context = null ) {
51  return [ 'site.styles' ];
52  }
53 }
$context
Definition: load.php:45
getPages(ResourceLoaderContext $context)
Get list of pages used by this module.
Module for site customizations.
getDependencies(ResourceLoaderContext $context=null)
Context object that contains information about the state of a specific ResourceLoader web request...