MediaWiki master
MediaWiki\Hook\LinkTargetIsAlwaysKnownBatchHook Interface Reference

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.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "LinkTargetIsAlwaysKnownBatch" to register handlers implementing this interface.

Stability: stable
to implement
Since
1.47

Definition at line 15 of file LinkTargetIsAlwaysKnownBatchHook.php.

Member Function Documentation

◆ onLinkTargetIsAlwaysKnownBatch()

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.

Parameters
LinkTarget[]$links
(bool|null)[]&$isAlwaysKnown Evaluation decision for each link (keys are the same as in $links)
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: