| PreferencesGetLayout | |
|---|---|
| Available fromversion 1.40.0 Use the hook to check if the preferences will have a mobile or desktop layout. | |
| Define function: | publicstaticfunctiononPreferencesGetLayout(bool&$useMobileLayout,string$skinName,array$skinProperties){...} |
| Attach hook: | Inextension.json:{"Hooks":{"PreferencesGetLayout":"MediaWiki\\Extension\\MyExtension\\Hooks::onPreferencesGetLayout"}} |
| Called from: | File(s):specials/forms/PreferencesFormOOUI.php |
| Interface: | PreferencesGetLayoutHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:PreferencesGetLayout extensions.
This hook allows extensions or skins to determine whetherSpecial:Preferences should display a mobile layout or not.
The default is that the desktop layout will be shown.