Manual:Hooks/WhatLinksHereProps

Category:MediaWiki hooks#WhatLinksHereProps Category:Hooks added in MediaWiki 1.24.0#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.phpCategory:MediaWiki hooks included in SpecialWhatLinksHere.php#WhatLinksHereProps
Interface: WhatLinksHerePropsHook.php

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

Details

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.

Category:Hooks added in MediaWiki 1.24.0 Category:MediaWiki hooks Category:MediaWiki hooks included in SpecialWhatLinksHere.php