MediaWiki  master
ApiOptionsHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Api\Hook;
4 
5 use ApiOptions;
7 
15 interface ApiOptionsHook {
29  public function onApiOptions( $apiModule, $user, $changes, $resetKinds );
30 }
API module that facilitates the changing of user's preferences.
Definition: ApiOptions.php:37
internal since 1.36
Definition: User.php:98
This is a hook handler interface, see docs/Hooks.md.
onApiOptions( $apiModule, $user, $changes, $resetKinds)
This hook is called by action=options before applying changes to user preferences.