Manual:Hooks/BacklinkCacheGetPrefix

From MediaWiki.org
Jump to navigation Jump to search
BacklinkCacheGetPrefix
Available from version 1.19.0 (r94435)
allows to set prefix for a spefific link table
Define function:
public static function onBacklinkCacheGetPrefix( $table, &$prefix ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"BacklinkCacheGetPrefix": "MyExtensionHooks::onBacklinkCacheGetPrefix"
	}
}

For MediaWiki ≤1.25:

$wgHooks['BacklinkCacheGetPrefix'][] = 'MyExtensionHooks::onBacklinkCacheGetPrefix';
Called from:File(s): cache/BacklinkCache.php

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