Debian Codegraph @

includes/Hook/ProtectionForm__buildFormHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6 use Article;
7
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ProtectionForm::buildForm" to register handlers implementing this interface.
11 *
12 * @deprecated since 1.36, use ProtectionFormAddFormFields
13 * @ingroup Hooks
14 */
15 interface ProtectionForm__buildFormHook {
16 /**
17 * This hook is called after all protection type fieldsets are made
18 * in the form.
19 *
20 * @since 1.35
21 *
22 * @param Article $article Title being (un)protected
23 * @param string &$output String of the form HTML so far
24 * @return bool|void True or no return value to continue or false to abort
25 */
26 public function onProtectionForm__buildForm( $article, &$output );
27 }