Manual:Hooks/GetLocalURL::Article

From MediaWiki.org
Jump to: navigation, search
GetLocalURL::Article
Available from version 1.19.0 (r94373)
Allows to modify local URLs specifically pointing to article paths without any fancy queries or variants.

Define function:
public static function onGetLocalURL::Article( $title, &$url ) { ... }

Attach hook:
$wgHooks['GetLocalURL::Article'][] = 'MyExtensionHooks::onGetLocalURL::Article';
Called from: Title.php

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


[edit] Details

  • $title: Title object of page
  • &$url: string value as output (out parameter, can modify)
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox