MediaWiki REL1_39
MediaWiki\Hook\NamespaceIsMovableHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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.
 

Detailed Description

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

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

Stability: stable
to implement

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