MediaWiki master
MediaWiki\Page\Hook\WikiPageFactoryHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onWikiPageFactory ( $title, &$page)
 Use this hook to override WikiPage class used for a title.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file WikiPageFactoryHook.php.

Member Function Documentation

◆ onWikiPageFactory()

MediaWiki\Page\Hook\WikiPageFactoryHook::onWikiPageFactory ( $title,
& $page )

Use this hook to override WikiPage class used for a title.

Since
1.35
Parameters
Title$titleTitle of the page
WikiPage | null&$pageVariable to set the created WikiPage to
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: