MediaWiki  master
MediaWiki\Hook\GetCanonicalURLHook Interface Reference

Stable for implementation. More...

Inheritance diagram for MediaWiki\Hook\GetCanonicalURLHook:

Public Member Functions

 onGetCanonicalURL ( $title, &$url, $query)
 Use this hook to modify fully-qualified URLs used for IRC and email notifications. More...
 

Detailed Description

Stable for implementation.

Definition at line 11 of file GetCanonicalURLHook.php.

Member Function Documentation

◆ onGetCanonicalURL()

MediaWiki\Hook\GetCanonicalURLHook::onGetCanonicalURL (   $title,
$url,
  $query 
)

Use this hook to modify fully-qualified URLs used for IRC and email notifications.

Since
1.35
Parameters
Title$titleTitle object of page
string&$urlString value as output (out parameter, can modify)
string$queryQuery options as string passed to Title::getCanonicalURL()
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: