Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
MobileHooks
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 onMinervaNeueTalkPageOverlay
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2/**
3 * DiscussionTools mobile hooks
4 *
5 * @file
6 * @ingroup Extensions
7 * @license MIT
8 */
9
10namespace MediaWiki\Extension\DiscussionTools\Hooks;
11
12class MobileHooks {
13    /**
14     * Decide whether mobile frontend should be allowed to activate
15     *
16     * @param \Title $title
17     * @param \OutputPage $output
18     * @return bool|void This hook can return false to abort, causing the talk overlay to not be shown
19     */
20    public static function onMinervaNeueTalkPageOverlay( $title, $output ) {
21        if ( HookUtils::isFeatureEnabledForOutput( $output ) ) {
22            return false;
23        }
24        return true;
25    }
26}