MediaWiki REL1_35
MediaWiki\Page\Hook\ArticleFromTitleHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Page\Hook\ArticleFromTitleHook:

Public Member Functions

 onArticleFromTitle ( $title, &$article, $context)
 This hook is called when creating an article object from a title object using Wiki::articleFromTitle().
 

Detailed Description

Stable to implement.

Definition at line 13 of file ArticleFromTitleHook.php.

Member Function Documentation

◆ onArticleFromTitle()

MediaWiki\Page\Hook\ArticleFromTitleHook::onArticleFromTitle (   $title,
$article,
  $context 
)

This hook is called when creating an article object from a title object using Wiki::articleFromTitle().

Since
1.35
Parameters
Title$titleTitle used to create the article object
Article&$articleArticle that will be returned
IContextSource$context
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: