Page MenuHomeWickedGov Phorge

ChangeTagsAllowedAddHook.php
No OneTemporary

Size
930 B
Referenced Files
None
Subscribers
None

ChangeTagsAllowedAddHook.php

<?php
namespace MediaWiki\ChangeTags\Hook;
use MediaWiki\User\User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ChangeTagsAllowedAdd" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface ChangeTagsAllowedAddHook {
/**
* This hook is called when checking if a user can add tags to a change.
*
* @since 1.35
*
* @param 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.
* @param string[] $addTags List of tags user intends to add
* @param User|null $user User who is adding the tags
* @return bool|void True or no return value to continue or false to abort
*/
public function onChangeTagsAllowedAdd( &$allowedTags, $addTags, $user );
}

File Metadata

Mime Type
text/x-php
Expires
Aug 15 2026, 18:03 (12 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b4/c8/3eadc8129474890a99ac467474f3
Default Alt Text
ChangeTagsAllowedAddHook.php (930 B)

Event Timeline