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

Public Member Functions | |
| onChangeTagsAllowedAdd (&$allowedTags, $addTags, $user) | |
| This hook is called when checking if a user can add tags to a change. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ChangeTagsAllowedAdd" to register handlers implementing this interface.
Definition at line 14 of file ChangeTagsAllowedAddHook.php.
| MediaWiki\ChangeTags\Hook\ChangeTagsAllowedAddHook::onChangeTagsAllowedAdd | ( | & | $allowedTags, |
| $addTags, | |||
| $user ) |
This hook is called when checking if a user can add tags to a change.
| string[] | &$allowedTags | List of all the tags the user is allowed to add. Any tags the user wants to add ($addTags) that are not in this array will cause it to fail. You may add or remove tags to this array as required. |
| string[] | $addTags | List of tags user intends to add |
| User | null | $user | User who is adding the tags |
Implemented in MediaWiki\HookContainer\HookRunner.