MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onUserGetDefaultOptions (&$defaultOptions) | |
This hook is called after fetching core default user options but before returning the options. | |
Stable to implement.
Definition at line 9 of file UserGetDefaultOptionsHook.php.
MediaWiki\User\Hook\UserGetDefaultOptionsHook::onUserGetDefaultOptions | ( | & | $defaultOptions | ) |
This hook is called after fetching core default user options but before returning the options.
Warning: This hook is called for every call to User::getDefaultOptions(), which means it's potentially called dozens or hundreds of times. You may want to cache the results of non-trivial operations in your hook function for this reason.
array | &$defaultOptions | Array of preference keys and their default values. |
Implemented in MediaWiki\HookContainer\HookRunner.