< Manual:Hooks
| GetLocalURL::Article | |
|---|---|
| Available from version 1.19.0 (r94373, codereview) 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: | In extension.json:
{
"Hooks": {
"GetLocalURL::Article": "MyExtensionHooks::onGetLocalURLArticle"
}
}
|
| Called from: | File(s): Title.php |
| Interface: | GetLocalURL__ArticleHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:GetLocalURL::Article extensions.
Details
- $title: Title object of page
- &$url: string value as output (out parameter, can modify)
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.