< Extension:MobileFrontend < Hooks
| BeforeSpecialMobileDiffDisplay | |
|---|---|
| Available from version 1.22.0 (Gerrit change 86061) Allow other extensions to load more things onto the display of Special:MobileDiff |
|
| Define function: | public static function onBeforeSpecialMobileDiffDisplay( OutputPage &$output, MobileContext $mobileContext, array $revisions ) { ... }
|
| Attach hook: | $wgHooks['BeforeSpecialMobileDiffDisplay'][] = 'MyExtensionHooks::onBeforeSpecialMobileDiffDisplay';
|
| Called from: | File(s): MobileFrontend / includes/specials/SpecialMobileDiff.php Function(s): executeWhenAvailable |
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:BeforeSpecialMobileDiffDisplay extensions.
Details
&$output: An instance ofOutputPage$mobileContext: An instance ofMobileContext$revisions: An array of only 2 items, containing a previous revision and next revision. It is eitherMediaWiki\Revision\RevisionRecordif a revision exists, ornullif a revision doesn't exist (defined asRevisionRecord[] | null[])
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.