< Manual:Hooks
ArticleViewFooter
Available from version 1.18.0 (r80333, codereview)
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": "MyExtensionHooks::onArticleViewFooter"
	}
}
Called from: File(s): page/Article.php
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
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.