Available from version 1.30.0 (Gerrit change 336963)
Called before an HTML line for Special:Log is finished
Define function:
public static function onLogEventsListLineEnding( LogEventsList $page, string &$line, DatabaseLogEntry &$entry, array &$classes, array &$attribs ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"LogEventsListLineEnding": "MediaWiki\\Extension\\MyExtension\\Hooks::onLogEventsListLineEnding"
Called from: File(s): logging/LogEventsList.php
Function(s): logLine
Interface: LogEventsListLineEndingHook.php

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

Details edit

  • $page: the LogEventsList object.
  • &$line: the HTML string representing this line
  • $entry: the DatabaseLogEntry object for this row.
  • &$classes: array of CSS classes to add to the surrounding line wrapper
  • &$attribs: associative array of other HTML attributes for the wrapper element. Currently only data attributes reserved to MediaWiki are allowed (see Sanitizer::isReservedDataAttribute).

See also edit