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 | |
3 | namespace MediaWiki\Extension\SecurePoll\Hooks; |
4 | |
5 | use MediaWiki\Extension\SecurePoll\Pages\VotePage; |
6 | |
7 | // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
8 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
9 | /** |
10 | * This is a hook handler interface, see docs/Hooks.md in core. |
11 | * Use the hook name "SecurePoll_JumpUrl" to register handlers implementing this interface. |
12 | * |
13 | * @stable to implement |
14 | * @ingroup Hooks |
15 | */ |
16 | interface SecurePoll_JumpUrlHook { |
17 | /** |
18 | * This hook is called when a user is told he needs to jump to another wiki to cast |
19 | * their vote. |
20 | * |
21 | * @since 1.38 |
22 | * |
23 | * @param VotePage $page |
24 | * @param string &$url |
25 | * @return bool|void True or no return value to continue or false to abort |
26 | */ |
27 | public function onSecurePoll_JumpUrl( |
28 | VotePage $page, |
29 | string &$url |
30 | ); |
31 | } |