MediaWiki  master
UserGetLanguageObjectHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
6 use User;
7 
26  public function onUserGetLanguageObject( $user, &$code, $context );
27 }
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
MediaWiki\Hook\UserGetLanguageObjectHook
This is a hook handler interface, see docs/Hooks.md.
Definition: UserGetLanguageObjectHook.php:15
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition: IContextSource.php:55
MediaWiki\$context
IContextSource $context
Definition: MediaWiki.php:40
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:56
MediaWiki\Hook\UserGetLanguageObjectHook\onUserGetLanguageObject
onUserGetLanguageObject( $user, &$code, $context)
This hook is called when getting a user's interface language object.