MediaWiki  master
MediaWiki\Hook\LinksUpdateAfterInsertHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\LinksUpdateAfterInsertHook:

Public Member Functions

 onLinksUpdateAfterInsert ( $linksUpdate, $table, $insertions)
 This hook is called at the end of LinksUpdate::incrTableUpdate() after each link table insert. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 14 of file LinksUpdateAfterInsertHook.php.

Member Function Documentation

◆ onLinksUpdateAfterInsert()

MediaWiki\Hook\LinksUpdateAfterInsertHook::onLinksUpdateAfterInsert (   $linksUpdate,
  $table,
  $insertions 
)

This hook is called at the end of LinksUpdate::incrTableUpdate() after each link table insert.

For example: pagelinks, imagelinks, externallinks.

Since
1.35
Parameters
LinksUpdate$linksUpdate
string$tableTable to insert links to
array$insertionsArray of links to insert
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: