Merge "Improve type hints in parser related classes"
[lhc/web/wiklou.git] / includes / skins / SkinApi.php
index 1145efd..8ee2a75 100644 (file)
@@ -4,9 +4,7 @@
  * the usual skin elements but still using CSS, JS, and such via OutputPage and
  * ResourceLoader.
  *
- * Created on Sep 08, 2014
- *
- * Copyright © 2014 Brad Jorsch <bjorsch@wikimedia.org>
+ * Copyright © 2014 Wikimedia Foundation and contributors
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  */
 class SkinApi extends SkinTemplate {
        public $skinname = 'apioutput';
-       public $template = 'SkinApiTemplate';
+       public $template = SkinApiTemplate::class;
 
-       public function setupSkinUserCss( OutputPage $out ) {
-               parent::setupSkinUserCss( $out );
-               $out->addModuleStyles( 'mediawiki.skinning.interface' );
+       public function getDefaultModules() {
+               $modules = parent::getDefaultModules();
+               $modules['styles']['skin'][] = 'mediawiki.skinning.interface';
+               // There is no search box, disable 'mediawiki.searchSuggest'
+               $modules['search'] = [];
+               return $modules;
        }
 
        // Skip work and hooks for stuff we don't use