Jump to content

Manual:Hooks/EditSectionLinkForOther

From mediawiki.org
EditSectionLinkForOther
Available from version 1.11.0
Removed in version 1.14.0
Override the return value of Linker::editSectionLinkForOther()
Define function:
public static function onEditSectionLinkForOther( $skin, $title, $section, $hint, $link, $result ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"EditSectionLinkForOther": "MediaWiki\\Extension\\MyExtension\\Hooks::onEditSectionLinkForOther"
	}
}
Called from: File(s): Linker.php
Interface: EditSectionLinkForOtherHook.php

For more information about attaching hooks, see Manual:Hooks .

Details

[edit]
  • $skin: Skin rendering the UI
  • $title: Title being linked to
  • $section: Section to link to
  • $hint: Anchor title/tooltip attributes
  • $link: Default link
  • $result: Result (alter this to override the generated links)

Can be used to change, modify, add links on the right side of the section header