Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7407034
ChangeTagCanDeleteHook.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
ChangeTagCanDeleteHook.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 "ChangeTagCanDelete" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ChangeTagCanDeleteHook
{
/**
* Use this hook to tell whether a change tag should be able to be
* deleted from the UI (Special:Tags) or via the API. The default is that tags
* defined using the ListDefinedTags hook are not allowed to be deleted unless
* specifically allowed. Ensure you consume the ChangeTagAfterDelete hook to carry
* out custom deletion actions.
*
* @since 1.35
*
* @param string $tag Name of the tag
* @param User|null $user User initiating the action
* @param Status &$status To allow deletion of the tag, set `$status = Status::newGood()`,
* and then return false from the hook function.
* @return bool|void True or no return value to continue or false to allow deletion of the tag
*/
public
function
onChangeTagCanDelete
(
$tag
,
$user
,
&
$status
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 20:43 (1 d, 12 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b5/09/1f7388bb9f4a9b3604025a8a5d0c
Default Alt Text
ChangeTagCanDeleteHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment