Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5988560
EchoHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
986 B
Referenced Files
None
Subscribers
None
EchoHandler.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\Hooks\Handlers
;
use
MediaWiki\Extension\AbuseFilter\EchoNotifier
;
use
MediaWiki\Extension\AbuseFilter\ThrottleFilterPresentationModel
;
use
MediaWiki\Extension\Notifications\AttributeManager
;
use
MediaWiki\Extension\Notifications\Hooks\BeforeCreateEchoEventHook
;
use
MediaWiki\Extension\Notifications\UserLocator
;
class
EchoHandler
implements
BeforeCreateEchoEventHook
{
/**
* @param array &$notifications
* @param array &$notificationCategories
* @param array &$icons
*/
public
function
onBeforeCreateEchoEvent
(
array
&
$notifications
,
array
&
$notificationCategories
,
array
&
$icons
)
{
$notifications
[
EchoNotifier
::
EVENT_TYPE
]
=
[
'category'
=>
'system'
,
'section'
=>
'alert'
,
'group'
=>
'negative'
,
'presentation-model'
=>
ThrottleFilterPresentationModel
::
class
,
AttributeManager
::
ATTR_LOCATORS
=>
[
[
[
UserLocator
::
class
,
'locateFromEventExtra'
],
[
'user'
]
]
],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:50 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5f/04/7d5c4b76e111681e363624625e76
Default Alt Text
EchoHandler.php (986 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment