Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Actions\Hook;
4
5use MediaWiki\Context\IContextSource;
6
7/**
8 * @stable to implement
9 * @ingroup Hooks
10 */
11interface 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}