Debian Codegraph @

includes/block/Hook/GetAllBlockActionsHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Block\Hook;
4
5 /**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "GetAllBlockActions" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12 interface GetAllBlockActionsHook {
13 /**
14 * Use this hook to add an action or actions that may be blocked by a partial block.
15 *
16 * Add an item to the $actions array with:
17 * - key: unique action string (as it appears in the code)
18 * - value: unique integer ID
19 *
20 * The ID must be 100 or greater (IDs below 100 are reserved for core actions),
21 * must not conflict with other extension IDs, and must be documented at:
22 * https://www.mediawiki.org/wiki/Manual:Hooks/GetAllBlockActions
23 *
24 * @since 1.37
25 *
26 * @param int[] &$actions Array of actions, which may be added to
27 * @return bool|void True or no return value to continue; callers of this hook should not abort it
28 */
29 public function onGetAllBlockActions( &$actions );
30 }