Manual:Hooks/LogEventsListGetExtraInputs

LogEventsListGetExtraInputs
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( $type, $logEventsList, &$input ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"LogEventsListGetExtraInputs": "MyExtensionHooks::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.

DetailsEdit

  • $type: String of log type being displayed
  • $logEventsList: LogEventsList object for context and access to the WebRequest
  • &$input: string HTML of an input element