Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Hook;
4
5/**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "PreferencesGetLayout" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12interface PreferencesGetLayoutHook {
13    /**
14     * Use the hook to check if the preferences will have a mobile or desktop layout.
15     *
16     * @since 1.40
17     * @param bool &$useMobileLayout a boolean which will indicate whether to use
18     * a mobile layout or not
19     * @param string $skinName the name of the skin being used
20     * @param array $skinProperties an associative array that includes skin properties.
21     * A skin property could be one of the following:
22     * - `isResponsive`: Whether a skin can be responsive.
23     * - `getVersion`: Get the version of the skin.
24     * Is an empty array by default
25     * @return bool|void True or no return value to continue or false to abort
26     */
27    public function onPreferencesGetLayout( &$useMobileLayout, $skinName, $skinProperties = [] );
28}