Manual:Hooks/ArticleViewFooter

Category:MediaWiki hooks#ArticleViewFooter Category:Hooks added in MediaWiki 1.18.0#ArticleViewFooter
ArticleViewFooter
Available from version 1.18.0 (r80333, CodeReview archive)
After showing the footer section of an ordinary page view.
Define function:
public static function onArticleViewFooter( Article $article, bool $patrolFooterShown ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleViewFooter": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleViewFooter"
	}
}
Called from: File(s): page/Article.phpCategory:MediaWiki hooks included in Article.php#ArticleViewFooter
Interface: ArticleViewFooterHook.php

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

Details

  • $article: Article object
  • $patrolFooterShown: Boolean whether patrol footer is being shown
Category:Hooks added in MediaWiki 1.18.0 Category:MediaWiki hooks Category:MediaWiki hooks included in Article.php