Debian Codegraph @

includes/specials/Hook/ExtensionTypesHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 /**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "ExtensionTypes" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12 interface ExtensionTypesHook {
13 /**
14 * This hook is called when generating the extensions credits
15 *
16 * Use this to change the tables headers.
17 *
18 * @since 1.35
19 *
20 * @param string[] &$extTypes Associative array of extensions types. The
21 * key of each element contains the symbolic type string as used in
22 * extension.json, and the value contains the description of the type,
23 * in the current user language, to be used as a header on
24 * Special:Version.
25 * @return bool|void True or no return value to continue or false to abort
26 */
27 public function onExtensionTypes( &$extTypes );
28 }