MediaWiki
REL1_34
Hooks.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Vector
;
4
5
use
OutputPage
;
6
use
SkinTemplate
;
7
use
SkinVector
;
8
15
class
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
}
OutputPage
This is one of the Core classes and should be read at least once by any new developers.
Definition
OutputPage.php:46
SkinTemplate
Base class for template-based skins.
Definition
SkinTemplate.php:38
SkinVector
Skin subclass for Vector.
Definition
SkinVector.php:29
Vector\Hooks
Hook handlers for Vector skin.
Definition
Hooks.php:15
Vector\Hooks\onBeforePageDisplayMobile
static onBeforePageDisplayMobile(OutputPage $out, $sk)
BeforePageDisplayMobile hook handler.
Definition
Hooks.php:25
Vector
Definition
Hooks.php:3
skins
Vector
includes
Hooks.php
Generated on Mon Nov 25 2024 16:04:45 for MediaWiki by
1.10.0