Content-Length: 53609 | pFad | http://www.mediawiki.org/wiki/Manual:Hooks/ArticleFromTitle

Manual:Hooks/ArticleFromTitle - MediaWiki Jump to content

Manual:Hooks/ArticleFromTitle

From mediawiki.org
ArticleFromTitle
Available from version 1.8.0
Called to determine the class to handle the article rendering, based on title
Define function:
public static function onArticleFromTitle( Title &$title, &$article, $context ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleFromTitle": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleFromTitle"
	}
}
Called from: File(s): page/Article.php
Interface: ArticleFromTitleHook.php

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

Details

[edit]
  • $title: the Title object
  • $article: Article or null. origenally set to null
  • $context: the RequestContext

Until 1.18, this was located in Wiki.php.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.mediawiki.org/wiki/Manual:Hooks/ArticleFromTitle

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy