Manual:Hooks/EnhancedChangesList::getLogText

EnhancedChangesList::getLogText
Available from version 1.25.0 (Gerrit change 193091)
allows altering, removing or adding to the links of a group of changes in EnhancedChangesList.
Define function:
public static function onEnhancedChangesList_getLogText( EnhancedChangesList $changesList, array &$links, array $cachedEntries ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"EnhancedChangesList::getLogText": "MediaWiki\\Extension\\MyExtension\\Hooks::onEnhancedChangesListgetLogText"
	}
}
Called from: File(s): changes/EnhancedChangesList.php
Function(s): getLogText
Interface: EnhancedChangesList__getLogTextHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:EnhancedChangesList::getLogText extensions.


Details

edit

Hook subscribers can return false to omit this line from Special:RecentChanges.

  • $changesList: EnhancedChangesList object
  • &$links: The links that were generated by EnhancedChangesList
  • $cachedEntries: Array of RCCacheEntry objects