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

31 lines
933 B
PHP

<?php
namespace MediaWiki\Hook;
use Parser;
use Revision;
use Title;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ParserFetchTemplate" to register handlers implementing this interface.
*
* @deprecated since 1.35
* @ingroup Hooks
*/
interface ParserFetchTemplateHook {
/**
* This hook is called when the parser fetches a template.
*
* @since 1.35
*
* @param Parser|bool $parser Parser object or false
* @param Title $title Title object of the template to be fetched
* @param Revision $rev Revision object of the template
* @param string|bool|null &$text Transclusion text of the template or false or null
* @param array &$deps Array of template dependencies with 'title', 'page_id', and
* 'rev_id' keys
* @return bool|void True or no return value to continue or false to abort
*/
public function onParserFetchTemplate( $parser, $title, $rev, &$text, &$deps );
}