Manual:Hooks/SpecialTrackingCategories::preprocess

SpecialTrackingCategories::preprocess
Available from version 1.29.0 (Gerrit change 321224)
Called after LinkBatch on Special:TrackingCategories
Define function:
public static function onSpecialTrackingCategories_preprocess( SpecialTrackingCategories $specialPage, array $trackingCategories ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialTrackingCategories::preprocess": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialTrackingCategoriespreprocess"
	}
}
Called from: File(s): specials/SpecialTrackingCategories.php
Function(s): execute
Interface: SpecialTrackingCategories__preprocessHook.php

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


Details

edit
  • $specialPage: The SpecialTrackingCategories object
  • $trackingCategories: Array of data from Special:TrackingCategories with msg and cats