Manual:Hooks/TitleIsAlwaysKnown
Appearance
Deprecated: This feature is deprecated and should no longer be used, however it is possibly still available for reasons of backwards compatibility. This feature was deprecated in version 1.47.0. See LinkTargetIsAlwaysKnownBatch for an alternative way to use this feature. |
| TitleIsAlwaysKnown | |
|---|---|
| Available from version 1.20.0 Allows overriding default behaviour for determining if a page exists. If $isKnown is kept as null, regular checks happen. If it's a boolean, this value is returned by the isKnown method. | |
| Define function: | public static function onTitleIsAlwaysKnown( $title, &$isKnown ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"TitleIsAlwaysKnown": "MediaWiki\\Extension\\MyExtension\\Hooks::onTitleIsAlwaysKnown"
}
}
|
| Called from: | File(s): Title/Title.php |
| Interface: | TitleIsAlwaysKnownHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:TitleIsAlwaysKnown extensions.
Details
[edit]- $title: Title object that is being checked
- $isKnown:
Boolean|null; whether MediaWiki currently thinks this page is known