|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onLinkTargetIsAlwaysKnownBatch (array $links, array &$isAlwaysKnown) | |
| This hook is called when determining if a page exist in batched. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "LinkTargetIsAlwaysKnownBatch" to register handlers implementing this interface.
Definition at line 15 of file LinkTargetIsAlwaysKnownBatchHook.php.
| MediaWiki\Hook\LinkTargetIsAlwaysKnownBatchHook::onLinkTargetIsAlwaysKnownBatch | ( | array | $links, |
| array & | $isAlwaysKnown ) |
This hook is called when determining if a page exist in batched.
Use this hook to override default behaviour for determining if a page exists.
If the value for a link is left as null in $isAlwaysKnown, regular checks happen. If it's a boolean, this value is returned by the isAlwaysKnown method.
| LinkTarget[] | $links | |
| (bool|null)[] | &$isAlwaysKnown Evaluation decision for each link (keys are the same as in $links) |
Implemented in MediaWiki\HookContainer\HookRunner.