MediaWiki REL1_34
Hooks.php
Go to the documentation of this file.
1<?php
2
3namespace Vector;
4
5use OutputPage;
7use SkinVector;
8
15class Hooks {
25 public static function onBeforePageDisplayMobile( OutputPage $out, $sk ) {
26 // This makes Vector behave in responsive mode when MobileFrontend is installed
27 if ( $sk instanceof SkinVector ) {
28 $sk->enableResponsiveMode();
29 }
30 }
31}
This is one of the Core classes and should be read at least once by any new developers.
Base class for template-based skins.
Skin subclass for Vector.
Hook handlers for Vector skin.
Definition Hooks.php:15
static onBeforePageDisplayMobile(OutputPage $out, $sk)
BeforePageDisplayMobile hook handler.
Definition Hooks.php:25