Available from version 1.25.0 (Gerrit change 169540)
When getting extra inputs to display on Special:Log for a specific log type
Define function:
public static function onLogEventsListGetExtraInputs( string $type, LogEventsList $logEventsList, array &$formDescriptor ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"LogEventsListGetExtraInputs": "MediaWiki\\Extension\\MyExtension\\Hooks::onLogEventsListGetExtraInputs"
Called from: File(s): logging/LogEventsList.php
Function(s): getExtraInputs
Interface: LogEventsListGetExtraInputsHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:LogEventsListGetExtraInputs extensions.

Details edit

  • $type: String of log type being displayed
  • $logEventsList: LogEventsList object for context and access to the WebRequest
  • &$input: string HTML of an input element. This was removed in Gerrit change 926551. (deprecated in 1.32) (removed in 1.41.0)
  • &$formDescriptor: HTMLForm's form descriptor