◆ __construct()
MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::__construct |
( |
SpecialPageFactory | $specialPageFactory, |
|
|
IBufferingStatsdDataFactory | $statsdDataFactory ) |
- Parameters
-
SpecialPageFactory | $specialPageFactory | |
IBufferingStatsdDataFactory | $statsdDataFactory | |
◆ onApiOptions()
MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::onApiOptions |
( |
| $apiModule, |
|
|
| $user, |
|
|
| $changes, |
|
|
| $resetKinds ) |
- Parameters
-
ApiOptions | $apiModule | |
User | $user | |
array | $changes | Associative array of preference name => value |
string[] | $resetKinds | |
◆ onGetPreferences()
MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::onGetPreferences |
( |
| $user, |
|
|
& | $preferences ) |
- Parameters
-
User | $user | |
array | &$preferences | |
◆ onLoginFormValidErrorMessages()
MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::onLoginFormValidErrorMessages |
( |
array & | $messages | ) |
|
Only logged-in users can use Special:GlobalWatchlist and Special:GlobalWatchlistSettings.
Ensure that when anonymous users are redirected to Special:UserLogin, there is a note explaining why
- Parameters
-
◆ onSidebarBeforeOutput()
MediaWiki\Extension\GlobalWatchlist\GlobalWatchlistHooks::onSidebarBeforeOutput |
( |
| $skin, |
|
|
& | $sidebar ) |
Add a link to Special:GlobalWatchlist when on Special:Watchlist.
- Parameters
-
Skin | $skin | |
array | &$sidebar | Sidebar content. Modify $sidebar to add or modify sidebar portlets. |
The documentation for this class was generated from the following file: