< Manual:Hooks 
 
      | 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": "MyExtensionHooks::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
- $title: the Title object
- $article: Article or null. originally set to null
- $context: the RequestContext
Until 1.18, this was located in Wiki.php.
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.