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.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