MediaWiki REL1_39
MediaWiki\Page\Hook\ArticleFromTitleHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ArticleFromTitle" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 16 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: