Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5939227
SpecialPage_initListHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SpecialPage_initListHook.php
View Options
<?php
namespace
MediaWiki\SpecialPage\Hook
;
// phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "SpecialPage_initList" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
SpecialPage_initListHook
{
/**
* This hook is called when setting up SpecialPageFactory::$list. Use
* this hook to remove a core special page or conditionally register special pages.
*
* @note The existence of a special page must not depend on the request context (e.g. current user or current
* title). Possible red/blue links from wiki pages are cached in the parser cache and must be stable across
* the requests from different users or for different pages.
* Use only site config or checks if extensions are loaded to add or remove special pages from the list.
* Override SpecialPage::userCanExecute or set a user right when calling SpecialPage::__construct,
* after registering the special page for all users, to restrict the access for users allowed to use the page.
* When replacing a (core) special page in the list, it is possible to depend on the request context,
* but this hook is also called from Setup and the user is not always safe to load,
* call User::isSafeToLoad before using any User class function or one of the user services like
* UserOptionsLookup/UserOptionsManager.
* Also the title may not be set for all requests (for e.g. api.php or load.php),
* so checks for title should be avoided.
*
* @since 1.35
*
* @param array &$list List of core special pages,
* mapping of (canonical) page name to class name, factory callback or to ObjectFactory spec
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onSpecialPage_initList
(
&
$list
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 2 2026, 16:32 (6 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ee/4d/31cb1fcb3864374e4f9775a0bda1
Default Alt Text
SpecialPage_initListHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment