MediaWiki  master
GetPreferencesHook.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use User;
6 
14 interface GetPreferencesHook {
24  public function onGetPreferences( $user, &$preferences );
25 }
MediaWiki\Preferences\Hook\GetPreferencesHook\onGetPreferences
onGetPreferences( $user, &$preferences)
Use this hook to modify user preferences.
MediaWiki\Preferences\Hook
Definition: GetPreferencesHook.php:3
MediaWiki\Preferences\Hook\GetPreferencesHook
This is a hook handler interface, see docs/Hooks.md.
Definition: GetPreferencesHook.php:14
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:63