MediaWiki  master
MediaWiki\Content\Hook\SecondaryDataUpdatesHook Interface Reference

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

Inheritance diagram for MediaWiki\Content\Hook\SecondaryDataUpdatesHook:

Public Member Functions

 onSecondaryDataUpdates ( $title, $oldContent, $recursive, $parserOutput, &$updates)
 Use this hook to modify the list of DataUpdates to perform when page content is modified. More...
 

Detailed Description

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

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

Deprecated:
since 1.32 Use RevisionDataUpdates or override ContentHandler::getSecondaryDataUpdates instead.

Definition at line 18 of file SecondaryDataUpdatesHook.php.

Member Function Documentation

◆ onSecondaryDataUpdates()

MediaWiki\Content\Hook\SecondaryDataUpdatesHook::onSecondaryDataUpdates (   $title,
  $oldContent,
  $recursive,
  $parserOutput,
$updates 
)

Use this hook to modify the list of DataUpdates to perform when page content is modified.

Deprecated:
since 1.32 Use RevisionDataUpdates or override ContentHandler::getSecondaryDataUpdates instead.
Parameters
Title$titleTitle of the page that is being edited
Content$oldContentPage content before the edit
bool$recursiveWhether DataUpdates should trigger recursive updates (relevant mostly for LinksUpdate)
ParserOutput$parserOutputRendered version of the page after the edit
DataUpdate[]&$updatesList of DataUpdate objects, to be modified or replaced by the hook handler
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: