Handler for “trivial” hooks: ones that don’t need any services injected, and whose code is fairly brief.
More...
Handler for “trivial” hooks: ones that don’t need any services injected, and whose code is fairly brief.
- Copyright
- GPL-2.0-or-later
◆ onAbortEmailNotification()
Wikibase\Client\Hooks\TrivialHookHandler::onAbortEmailNotification |
( |
|
$editor, |
|
|
|
$title, |
|
|
|
$recentChange |
|
) |
| |
- Parameters
-
User | $editor | |
Title | $title | |
RecentChange | $recentChange | |
- Returns
- bool
◆ onBeforePageDisplay()
Wikibase\Client\Hooks\TrivialHookHandler::onBeforePageDisplay |
( |
|
$outputPage, |
|
|
|
$skin |
|
) |
| |
Add the connected item prefixed id as a JS config variable, for gadgets etc.
- Parameters
-
OutputPage | $outputPage | |
Skin | $skin | |
◆ onSearchDataForIndex()
Wikibase\Client\Hooks\TrivialHookHandler::onSearchDataForIndex |
( |
& |
$fields, |
|
|
|
$handler, |
|
|
|
$page, |
|
|
|
$parserOutput, |
|
|
|
$engine |
|
) |
| |
Put wikibase_item into the data.
- Parameters
-
array | &$fields | |
ContentHandler | $handler | |
WikiPage | $page | |
ParserOutput | $parserOutput | |
SearchEngine | $engine | |
◆ onSearchIndexFields()
Wikibase\Client\Hooks\TrivialHookHandler::onSearchIndexFields |
( |
& |
$fields, |
|
|
|
$engine |
|
) |
| |
Register wikibase_item field.
- Parameters
-
array | &$fields | |
SearchEngine | $engine | |
◆ onUnitTestsList()
Wikibase\Client\Hooks\TrivialHookHandler::onUnitTestsList |
( |
& |
$paths | ) |
|
◆ onWgQueryPages()
Wikibase\Client\Hooks\TrivialHookHandler::onWgQueryPages |
( |
& |
$queryPages | ) |
|
The documentation for this class was generated from the following file: