wiki.techinc.nl/includes/Hook/EditFormPreloadTextHook.php

23 lines
456 B
PHP
Raw Normal View History

<?php
namespace MediaWiki\Hook;
use Title;
/**
* @stable to implement
* @ingroup Hooks
*/
interface EditFormPreloadTextHook {
/**
* Use this hook to populate the edit form when creating pages.
*
* @since 1.35
*
* @param string &$text Text to preload with
* @param Title $title Page being created
* @return bool|void True or no return value to continue or false to abort
*/
public function onEditFormPreloadText( &$text, $title );
}