wiki.techinc.nl/includes/Storage/Hook/ArticlePrepareTextForEditHook.php
James D. Forrester a5387c7c20 Namespace all remaining classes in includes/parser
Bug: T353458
Change-Id: If02cc9b1ff78e26c1cf8c91ee4695845eb133829
2024-10-15 23:54:32 +01:00

26 lines
716 B
PHP

<?php
namespace MediaWiki\Storage\Hook;
use MediaWiki\Parser\ParserOptions;
use WikiPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ArticlePrepareTextForEdit" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface ArticlePrepareTextForEditHook {
/**
* This hook is called when preparing text to be saved.
*
* @since 1.35
*
* @param WikiPage $wikiPage WikiPage being saved
* @param ParserOptions $popts Parser options to be used for pre-save transformation
* @return bool|void True or no return value to continue or false to abort
*/
public function onArticlePrepareTextForEdit( $wikiPage, $popts );
}