|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onArticleProtect ( $wikiPage, $user, $protect, $reason) | |
| This hook is called before an article is protected. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ArticleProtect" to register handlers implementing this interface.
Definition at line 15 of file ArticleProtectHook.php.
| MediaWiki\Page\Hook\ArticleProtectHook::onArticleProtect | ( | $wikiPage, | |
| $user, | |||
| $protect, | |||
| $reason ) |
This hook is called before an article is protected.
| WikiPage | $wikiPage | WikiPage being protected |
| User | $user | User doing the protection |
| array | $protect | Set of restriction keys |
| string | $reason | Reason for protect |
Implemented in MediaWiki\HookContainer\HookRunner.