MediaWiki master
MediaWiki\SpecialPage\Hook\WgQueryPagesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onWgQueryPages (&$qp)
 This hook is called when initialising list of QueryPage subclasses.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "wgQueryPages" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file WgQueryPagesHook.php.

Member Function Documentation

◆ onWgQueryPages()

MediaWiki\SpecialPage\Hook\WgQueryPagesHook::onWgQueryPages ( & $qp)

This hook is called when initialising list of QueryPage subclasses.

Use this hook to add new query pages to be updated with maintenance/updateSpecialPages.php.

Since
1.35
Parameters
array[]&$qpList of QueryPages Format: [ string $class, string $specialPageName, ?int $limit (optional) ]. Limit defaults to $wgQueryCacheLimit if not given.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: