|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onLocalUserOptionsStoreSave (UserIdentity $user, array $oldOptions, array $newOptions) | |
This hook is called just after saving preferences in LocalUserOptionsStore. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "LocalUserOptionsStoreSave" to register handlers implementing this interface.
Definition at line 14 of file LocalUserOptionsStoreSaveHook.php.
| MediaWiki\User\Options\Hook\LocalUserOptionsStoreSaveHook::onLocalUserOptionsStoreSave | ( | UserIdentity | $user, |
| array | $oldOptions, | ||
| array | $newOptions ) |
This hook is called just after saving preferences in LocalUserOptionsStore.
Hook handlers cannot modify the new preferences as the changes have been saved. This will only allow handlers to see the changes in specifically local options storage as opposed to any storge (which would be handled using SaveUserOptionsHook).
| UserIdentity | $user | The user for which the options have been saved |
| array | $oldOptions | The user's old local options |
| array | $newOptions | The user's new local options |
Implemented in MediaWiki\HookContainer\HookRunner.