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 ) { ... }
|
Attach hook: |
$wgHooks['ArticleFromTitle'][] = 'MyExtensionHooks::onArticleFromTitle'; |
| Called from: | Article.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. originally set to null
Until 1.18, this was located in Wiki.php.