Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\EditEntity\EditFilterHookRunner Interface Reference

Interface to run a hook before and edit is saved. More...

+ Inheritance diagram for Wikibase\Repo\EditEntity\EditFilterHookRunner:

Public Member Functions

 run ( $new, IContextSource $context, string $summary)
 Call EditFilterMergedContent hook, if registered.
 

Detailed Description

Interface to run a hook before and edit is saved.

Author
Addshore

Member Function Documentation

◆ run()

Wikibase\Repo\EditEntity\EditFilterHookRunner::run (   $new,
IContextSource  $context,
string  $summary 
)

Call EditFilterMergedContent hook, if registered.

Parameters
EntityDocument | EntityRedirect | EntityContent | null$newThe entity or redirect (content) we are trying to save
IContextSource$contextThe request context for the edit
string$summaryThe edit summary
Exceptions
RuntimeException
InvalidArgumentException
Returns
Status

Implemented in Wikibase\Repo\EditEntity\MediaWikiEditFilterHookRunner.


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