Manual:Hooks/LogEventsListGetExtraInputs

From mediawiki.org
Jump to navigation Jump to search
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( string $type, LogEventsList $logEventsList, string &$input, array &$formDescriptor ) { ... }
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.

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 (deprecated in 1.32)
  • &$formDescriptor: HTMLForm's form descriptor