MediaWiki  master
MediaWiki\Hook\TitleGetRestrictionTypesHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\TitleGetRestrictionTypesHook:

Public Member Functions

 onTitleGetRestrictionTypes ( $title, &$types)
 Use this hook to modify the types of protection that can be applied. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 14 of file TitleGetRestrictionTypesHook.php.

Member Function Documentation

◆ onTitleGetRestrictionTypes()

MediaWiki\Hook\TitleGetRestrictionTypesHook::onTitleGetRestrictionTypes (   $title,
$types 
)

Use this hook to modify the types of protection that can be applied.

Since
1.35
Parameters
Title$titleTitle in question
string[]&$typesTypes of protection available
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: