Manual:Hooks/BeforeDisplayNoArticleText
BeforeDisplayNoArticleText | |
---|---|
Available from version 1.19.0 Before displaying noarticletext or noarticletext-nopermission messages. | |
Define function: | public static function onBeforeDisplayNoArticleText( $article ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"BeforeDisplayNoArticleText": "MediaWiki\\Extension\\MyExtension\\Hooks::onBeforeDisplayNoArticleText"
}
}
|
Called from: | File(s): page/Article.php |
Interface: | BeforeDisplayNoArticleTextHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:BeforeDisplayNoArticleText extensions.
Details
edit- $article: article object