MediaWiki  master
MediaWiki\Hook\GetLocalURL__ArticleHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\GetLocalURL__ArticleHook:

Public Member Functions

 onGetLocalURL__Article ( $title, &$url)
 Use this hook to modify local URLs specifically pointing to article paths without any fancy queries or variants. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "GetLocalURL::Article" to register handlers implementing this interface.

Stable to implement

Definition at line 15 of file GetLocalURL__ArticleHook.php.

Member Function Documentation

◆ onGetLocalURL__Article()

MediaWiki\Hook\GetLocalURL__ArticleHook::onGetLocalURL__Article (   $title,
$url 
)

Use this hook to modify local URLs specifically pointing to article paths without any fancy queries or variants.

Since
1.35
Parameters
Title$titleTitle object of page
string&$urlString value as output (out parameter, can modify)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: