MediaWiki  master
MediaWiki\Preferences\Hook\GetPreferencesHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Preferences\Hook\GetPreferencesHook:

Public Member Functions

 onGetPreferences ( $user, &$preferences)
 Use this hook to modify user preferences. More...

Detailed Description

Stable to implement.

Definition at line 11 of file GetPreferencesHook.php.

Member Function Documentation

◆ onGetPreferences()

MediaWiki\Preferences\Hook\GetPreferencesHook::onGetPreferences (   $user,

Use this hook to modify user preferences.

User$userUser whose preferences are being modified
array&$preferencesPreferences description array, to be fed to an HTMLForm object
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.

The documentation for this interface was generated from the following file: