Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4115499
ChangeTagCanCreateHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ChangeTagCanCreateHook.php
View Options
<?php
namespace
MediaWiki\ChangeTags\Hook
;
use
MediaWiki\Status\Status
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ChangeTagCanCreate" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ChangeTagCanCreateHook
{
/**
* Use this hook to tell whether a change tag should be able to be created
* from the UI (Special:Tags) or via the API. You could use this hook if you want
* to reserve a specific "namespace" of tags, or something similar.
*
* @since 1.35
*
* @param string $tag Name of the tag
* @param User|null $user User initiating the action
* @param Status &$status Add your errors using `$status->fatal()` or warnings
* using `$status->warning()`. Errors and warnings will be relayed to the user.
* If you set an error, the user will be unable to create the tag.
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onChangeTagCanCreate
(
$tag
,
$user
,
&
$status
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 00:53 (1 w, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
14/ad/5f9601071fcfb4794168af29e940
Default Alt Text
ChangeTagCanCreateHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment