Manual:Hooks/WhatLinksHereProps

WhatLinksHereProps
Available from version 1.24.0 (Gerrit change 115860)
Allow extensions to annotate WhatLinksHere entries.
Define function:
public static function onWhatLinksHereProps( $row, $title, $target, &$props ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"WhatLinksHereProps": "MediaWiki\\Extension\\MyExtension\\Hooks::onWhatLinksHereProps"
	}
}
Called from: File(s): specials/SpecialWhatLinksHere.php
Interface: WhatLinksHerePropsHook.php

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


Details

edit

Allows extensions to annotate WhatLinksHere entries.

- $row: The DB row of the entry. - $title: The Title of the page where the link comes from. - $target: The Title of the page where the link goes to. - $props: Array of HTML strings to display after the title.