MediaWiki REL1_35
MediaWiki\Hook\TitleGetRestrictionTypesHook Interface Reference

Stable to implement. 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.
 

Detailed Description

Stable to implement.

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