MediaWiki  master
MediaWiki\Hook\NewPagesLineEndingHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\NewPagesLineEndingHook:

Public Member Functions

 onNewPagesLineEnding ( $page, &$ret, $row, &$classes, &$attribs)
 This hook is called before a NewPages line is finished. More...

Detailed Description

Stable to implement.

Definition at line 12 of file NewPagesLineEndingHook.php.

Member Function Documentation

◆ onNewPagesLineEnding()

MediaWiki\Hook\NewPagesLineEndingHook::onNewPagesLineEnding (   $page,

This hook is called before a NewPages line is finished.

SpecialNewPages$pageThe SpecialNewPages object
string&$retthe HTML line
stdClass$rowThe database row for this page (the recentchanges record and a few extras
string[]&$classesThe classes to add to the surrounding
string[]&$attribsAssociative array of other HTML attributes for the element. Currently only data attributes reserved to MediaWiki are allowed (see Sanitizer::isReservedDataAttribute).
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.

The documentation for this interface was generated from the following file: