Manual:Hooks/ShowMissingArticle

ShowMissingArticle
Available from version 1.16.0
Called when generating the output for a non-existent page.
Define function:
public static function onShowMissingArticle( $article ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ShowMissingArticle": "MediaWiki\\Extension\\MyExtension\\Hooks::onShowMissingArticle"
	}
}
Called from: File(s): page/Article.php
Interface: ShowMissingArticleHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ShowMissingArticle extensions.


Details

edit
  • $article: The article object corresponding to the page