MediaWiki REL1_41
MediaWiki\Hook\NewPagesLineEndingHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

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

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "NewPagesLineEnding" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file NewPagesLineEndingHook.php.

Member Function Documentation

◆ onNewPagesLineEnding()

MediaWiki\Hook\NewPagesLineEndingHook::onNewPagesLineEnding ( $pager,
& $ret,
$row,
& $classes,
& $attribs )

This hook is called before a NewPages line is finished.

Since
1.35
Parameters
NewPagesPager$pager
string&$retthe HTML line
stdClass$rowThe database row for this page (the recentchanges record and a few extras
  • see NewPagesPager::getQueryInfo)
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).
Returns
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: