MediaWiki  master
MediaWiki\Hook\NamespaceIsMovableHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\NamespaceIsMovableHook:

Public Member Functions

 onNamespaceIsMovable ( $index, &$result)
 This hook is called when determining if it is possible to move pages in a namespace. More...
 

Detailed Description

Stable to implement.

Definition at line 9 of file NamespaceIsMovableHook.php.

Member Function Documentation

◆ onNamespaceIsMovable()

MediaWiki\Hook\NamespaceIsMovableHook::onNamespaceIsMovable (   $index,
$result 
)

This hook is called when determining if it is possible to move pages in a namespace.

Since
1.35
Parameters
int$indexIndex of the namespace being checked
bool&$resultWhether MediaWiki currently thinks that pages in this namespace are movable. Hooks may change this value to override the return value of NamespaceInfo::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: