MediaWiki master
MediaWiki\Page\Hook\CategoryAfterPageAddedHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onCategoryAfterPageAdded ( $category, $wikiPage)
 This hook is called after a page is added to a category.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file CategoryAfterPageAddedHook.php.

Member Function Documentation

◆ onCategoryAfterPageAdded()

MediaWiki\Page\Hook\CategoryAfterPageAddedHook::onCategoryAfterPageAdded ( $category,
$wikiPage )

This hook is called after a page is added to a category.

Since
1.35
Parameters
Category$categoryCategory that page was added to
WikiPage$wikiPageWikiPage that was added
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: