wiki.techinc.nl/includes/Storage/Hook/ArticleEditUpdatesHook.php
daniel 2e57447c58 Document hook names in hook interfaces.
Bug: T258665
Change-Id: Ifddbf57f8aa2e3eb0d5845601376cbafa08ed407
2020-09-27 12:03:12 +02:00

29 lines
876 B
PHP

<?php
namespace MediaWiki\Storage\Hook;
use MediaWiki\Edit\PreparedEdit;
use WikiPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ArticleEditUpdates" to register handlers implementing this interface.
*
* @deprecated since 1.35 Use RevisionDataUpdates instead
* @ingroup Hooks
*/
interface ArticleEditUpdatesHook {
/**
* This hook is called when edit updates (mainly link tracking) are made
* when an article has been changed.
*
* @since 1.35
*
* @param WikiPage $wikiPage
* @param PreparedEdit $editInfo Data holder that includes the parser output
* ($editInfo->output) for that page after the change
* @param bool $changed Whether the page was changed
* @return bool|void True or no return value to continue or false to abort
*/
public function onArticleEditUpdates( $wikiPage, $editInfo, $changed );
}