MediaWiki master
MediaWiki\Hook\TitleExistsHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onTitleExists ( $title, &$exists)
 This hook is called when determining whether a page exists at a given title.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file TitleExistsHook.php.

Member Function Documentation

◆ onTitleExists()

MediaWiki\Hook\TitleExistsHook::onTitleExists ( $title,
& $exists )

This hook is called when determining whether a page exists at a given title.

Since
1.35
Parameters
Title$titleTitle being tested
bool&$existsWhether the title exists
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: