MediaWiki  master
PreferencesGetLayoutHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
27  public function onPreferencesGetLayout( &$useMobileLayout, $skinName, $skinProperties = [] );
28 }
This is a hook handler interface, see docs/Hooks.md.
onPreferencesGetLayout(&$useMobileLayout, $skinName, $skinProperties=[])
Use the hook to check if the preferences will have a mobile or desktop layout.