MediaWiki master
MediaWiki\Hook\TitleIsMovableHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onTitleIsMovable ( $title, &$result)
 This hook is called when determining if it is possible to move a page.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file TitleIsMovableHook.php.

Member Function Documentation

◆ onTitleIsMovable()

MediaWiki\Hook\TitleIsMovableHook::onTitleIsMovable ( $title,
& $result )

This hook is called when determining if it is possible to move a page.

Note that this hook is not called for interwiki pages or pages in immovable namespaces: for these, isMovable() always returns false.

Since
1.35
Parameters
Title$titleTitle object that is being checked
bool&$resultWhether MediaWiki currently thinks this page is movable. Hooks may change this value to override the return value of Title::isMovable().
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: