MediaWiki  master
Page\Hook\WikiPageFactoryHook Interface Reference

Stable to implement. More...

Inheritance diagram for Page\Hook\WikiPageFactoryHook:

Public Member Functions

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

Detailed Description

Stable to implement.

Definition at line 12 of file WikiPageFactoryHook.php.

Member Function Documentation

◆ onWikiPageFactory()

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&$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: