MediaWiki  master
MediaWiki\Hook\TitleIsMovableHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\TitleIsMovableHook:

Public Member Functions

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

Detailed Description

Stable to implement.

Definition at line 11 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: