< Manual:Hooks
| LogEventsListLineEnding | |
|---|---|
| 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": "MyExtensionHooks::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
$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 (seeSanitizer::isReservedDataAttribute).
See also
- ContributionsLineEnding
- DeletedContributionsLineEnding
- NewPagesLineEnding
- PageHistoryLineEnding
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.