Extension:MobileFrontend/Hooks/BeforeSpecialMobileDiffDisplay
Appearance
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
[edit]&$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\RevisionRecord
if a revision exists, ornull
if a revision doesn't exist (defined asRevisionRecord[] | null[]
)