MediaWiki REL1_35
MediaWiki\Content\Hook\SecondaryDataUpdatesHook Interface Reference
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.
 

Detailed Description

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

Definition at line 15 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: