Debian Codegraph @

includes/actions/Hook/GetActionNameHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Actions\Hook;
4
5 use MediaWiki\Context\IContextSource;
6
7 /**
8 * @stable to implement
9 * @ingroup Hooks
10 */
11 interface GetActionNameHook {
12 /**
13 * Use this hook to override the action name depending on request parameters.
14 *
15 * @since 1.37
16 *
17 * @param IContextSource $context Request context
18 * @param string &$action Default action name, reassign to change it
19 * @return void This hook must not abort, it must return no value
20 */
21 public function onGetActionName( IContextSource $context, string &$action ): void;
22 }