MediaWiki
1.34.4
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
}
Vector
Definition:
Hooks.php:3
Vector\Hooks
Hook handlers for Vector skin.
Definition:
Hooks.php:15
OutputPage
This is one of the Core classes and should be read at least once by any new developers.
Definition:
OutputPage.php:46
SkinVector
Skin subclass for Vector.
Definition:
SkinVector.php:29
SkinTemplate
Base class for template-based skins.
Definition:
SkinTemplate.php:38
Vector\Hooks\onBeforePageDisplayMobile
static onBeforePageDisplayMobile(OutputPage $out, $sk)
BeforePageDisplayMobile hook handler.
Definition:
Hooks.php:25
skins
Vector
includes
Hooks.php
Generated on Thu Sep 24 2020 22:29:08 for MediaWiki by
1.8.18