MediaWiki  master
ArticleFromTitleHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Page\Hook;
4 
5 use Article;
7 use Title;
8 
28  public function onArticleFromTitle( $title, &$article, $context );
29 }
Page::Hook\ArticleFromTitleHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ArticleFromTitleHook.php:16
Page::Hook\ArticleFromTitleHook\onArticleFromTitle
onArticleFromTitle( $title, &$article, $context)
This hook is called when creating an article object from a title object using Wiki::articleFromTitle(...
$title
$title
Definition: testCompression.php:38
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition: IContextSource.php:58
Title
Represents a title within MediaWiki.
Definition: Title.php:47
Article
Class for viewing MediaWiki article and history.
Definition: Article.php:49
MediaWiki\$context
IContextSource $context
Definition: MediaWiki.php:40
MediaWiki\Page\Hook
Definition: Article__MissingArticleConditionsHook.php:3