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": "MyExtensionHooks::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.


DetailsEdit

  • $article: The article object corresponding to the page