MediaWiki REL1_32
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 class should be covered by a general architecture document which does not exist as of January 20...
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
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
Definition hooks.txt:894