Wikibase
MediaWiki Wikibase extension
Wikibase\Client\Hooks\EchoSetupHookHandler Class Reference

Handlers for hooks (e.g. More...

Public Member Functions

 __construct ( $sendEchoNotification, $echoIcon)
 
 onBeforeCreateEchoEvent (array &$notifications, array &$notificationCategories, array &$icons)
 Handler for BeforeCreateEchoEvent hook. More...
 

Static Public Member Functions

static factory (SettingsArray $clientSettings)
 

Private Attributes

 $sendEchoNotification
 
 $echoIcon
 

Detailed Description

Handlers for hooks (e.g.

BeforeCreateEchoEvent) called when Echo extension is initialized, so on every page load.

Author
Matěj Suchánek
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\EchoSetupHookHandler::__construct (   $sendEchoNotification,
  $echoIcon 
)
Parameters
bool$sendEchoNotification
array | false$echoIcon

Member Function Documentation

◆ factory()

static Wikibase\Client\Hooks\EchoSetupHookHandler::factory ( SettingsArray  $clientSettings)
static

◆ onBeforeCreateEchoEvent()

Wikibase\Client\Hooks\EchoSetupHookHandler::onBeforeCreateEchoEvent ( array &  $notifications,
array &  $notificationCategories,
array &  $icons 
)

Handler for BeforeCreateEchoEvent hook.

See also
https://www.mediawiki.org/wiki/Extension:Echo/BeforeCreateEchoEvent
https://www.mediawiki.org/wiki/Notifications/Developer_guide
Parameters
array[]&$notifications
array[]&$notificationCategories
array[]&$icons

Member Data Documentation

◆ $echoIcon

Wikibase\Client\Hooks\EchoSetupHookHandler::$echoIcon
private

◆ $sendEchoNotification

Wikibase\Client\Hooks\EchoSetupHookHandler::$sendEchoNotification
private

The documentation for this class was generated from the following file: