Debian Codegraph @

includes/specials/Hook/UploadForm_initialHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use MediaWiki\Specials\SpecialUpload;
6
7 // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "UploadForm:initial" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15 interface UploadForm_initialHook {
16 /**
17 * This hook is called before the upload form is generated.
18 *
19 * Extensions might set the member-variables $uploadFormTextTop and
20 * $uploadFormTextAfterSummary to inject text (HTML) either before or after the editform.
21 *
22 * @since 1.35
23 *
24 * @param SpecialUpload $upload
25 * @return bool|void True or no return value to continue or false to abort
26 */
27 public function onUploadForm_initial( $upload );
28 }