Debian Codegraph @

includes/Hook/PreferencesGetIconHook.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 "PreferencesGetIcon" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12 interface PreferencesGetIconHook {
13 /**
14 * Use the hook to add an icon that will be displayed in the mobile layout of
15 * Special:Preferences.
16 *
17 * @since 1.40
18 * @param array &$iconNames a key-value array that assigns an icon name to a section name.
19 * The key is the section name, the value is the icon name.
20 * You can obtain the icon names from
21 * https://doc.wikimedia.org/oojs-ui/master/demos/?page=icons&theme=wikimediaui&direction=ltr&platform=desktop
22 * @return bool|void True or no return value to continue or false to abort
23 */
24 public function onPreferencesGetIcon( &$iconNames );
25 }