Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4051405
ChangeTagsAllowedAddHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
930 B
Referenced Files
None
Subscribers
None
ChangeTagsAllowedAddHook.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment