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\FlaggedRevs\Backend\Hook; |
4 | |
5 | use MediaWiki\Page\PageIdentity; |
6 | use MediaWiki\User\UserIdentity; |
7 | |
8 | interface FlaggedRevsStabilitySettingsChangedHook { |
9 | |
10 | /** |
11 | * Use this hook to run code when the stabilisation settings have changed for a page. |
12 | * |
13 | * This is intended to function similarly to the {@link ArticleProtectCompleteHook} from MediaWiki core. |
14 | * |
15 | * @since 1.44 |
16 | * |
17 | * @param PageIdentity $title The page where the settings have changed |
18 | * @param array $newStabilitySettings The new stabilisation settings for the page, containing array keys |
19 | * 'override', 'autoreview', and 'expiry'. |
20 | * @param UserIdentity $userIdentity User who modified the stabilisation settings |
21 | * @param string $reason Reason given for the modification |
22 | */ |
23 | public function onFlaggedRevsStabilitySettingsChanged( $title, $newStabilitySettings, $userIdentity, $reason ); |
24 | } |