diff options
Diffstat (limited to 'includes/deferred/Hook/LinksUpdateAfterInsertHook.php')
-rw-r--r-- | includes/deferred/Hook/LinksUpdateAfterInsertHook.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/includes/deferred/Hook/LinksUpdateAfterInsertHook.php b/includes/deferred/Hook/LinksUpdateAfterInsertHook.php new file mode 100644 index 000000000000..37b02dd475d1 --- /dev/null +++ b/includes/deferred/Hook/LinksUpdateAfterInsertHook.php @@ -0,0 +1,22 @@ +<?php + +namespace MediaWiki\Hook; + +/** + * @stable for implementation + * @ingroup Hooks + */ +interface LinksUpdateAfterInsertHook { + /** + * At the end of LinksUpdate::incrTableUpdate() after + * each link table insert. For example, pagelinks, imagelinks, externallinks. + * + * @since 1.35 + * + * @param ?mixed $linksUpdate LinksUpdate object + * @param ?mixed $table the table to insert links to + * @param ?mixed $insertions an array of links to insert + * @return bool|void True or no return value to continue or false to abort + */ + public function onLinksUpdateAfterInsert( $linksUpdate, $table, $insertions ); +} |