MediaWiki REL1_35
MediaWiki\Page\Hook\ArticleRevisionViewCustomHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Page\Hook\ArticleRevisionViewCustomHook:

Public Member Functions

 onArticleRevisionViewCustom ( $revision, $title, $oldid, $output)
 Use this hook for custom rendering of an article's content.
 

Detailed Description

Stable to implement.

Definition at line 13 of file ArticleRevisionViewCustomHook.php.

Member Function Documentation

◆ onArticleRevisionViewCustom()

MediaWiki\Page\Hook\ArticleRevisionViewCustomHook::onArticleRevisionViewCustom (   $revision,
  $title,
  $oldid,
  $output 
)

Use this hook for custom rendering of an article's content.

Note that it is preferable to implement proper handing for a custom data type using the ContentHandler facility.

Since
1.35
Parameters
RevisionRecord | null$revisionContent of the page (or null if the revision could not be loaded). May also be a fake that wraps content supplied by an extension.
Title$titleTitle of the page
int$oldidRequested revision ID, or 0 for the current revision
OutputPage$output
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: