Changes since the interfaces were generated: 5 hooks added: * RevisionUndeleted * ParserBeforePreprocess * RollbackComplete * HtmlCacheUpdaterAppendUrls * HtmlCacheUpdaterVaryUrls 9 hooks deprecated: * ArticleRevisionUndeleted * ArticleRollbackComplete (soft deprecation) * UndeleteShowRevision * InternalParseBeforeSanitize * ParserFetchTemplate * ParserSectionCreate * ParserPreSaveTransformComplete * BeforeParserrenderImageGallery * ParserBeforeTidy Bug: T240307 Change-Id: Ib91b1d8e519e6cb3c74a6fe174fe2fd0103d6d30
24 lines
541 B
PHP
24 lines
541 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
use Parser;
|
|
use StripState;
|
|
|
|
/**
|
|
* @stable for implementation
|
|
* @ingroup Hooks
|
|
*/
|
|
interface ParserBeforePreprocessHook {
|
|
/**
|
|
* Called at the beginning of Parser::preprocess()
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param Parser $parser Parser object
|
|
* @param string &$text text to parse
|
|
* @param StripState $stripState StripState instance being used
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onParserBeforePreprocess( $parser, &$text, $stripState );
|
|
}
|