MediaWiki REL1_35
ArticleProtectHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Page\Hook;
4
5use User;
6use WikiPage;
7
24 public function onArticleProtect( $wikiPage, $user, $protect, $reason );
25}
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:60
Class representing a MediaWiki article and history.
Definition WikiPage.php:51
onArticleProtect( $wikiPage, $user, $protect, $reason)
This hook is called before an article is protected.