| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
| 6 | use Article; |
| 7 | use MediaWiki\Output\OutputPage; |
| 8 | |
| 9 | /** |
| 10 | * This is a hook handler interface, see docs/Hooks.md. |
| 11 | * Use the hook name "ProtectionForm::showLogExtract" to register handlers implementing this interface. |
| 12 | * |
| 13 | * @stable to implement |
| 14 | * @ingroup Hooks |
| 15 | */ |
| 16 | interface ProtectionForm__showLogExtractHook { |
| 17 | /** |
| 18 | * This hook is called after the protection log extract is shown. |
| 19 | * |
| 20 | * @since 1.35 |
| 21 | * |
| 22 | * @param Article $article Page the form is shown for |
| 23 | * @param OutputPage $out |
| 24 | * @return bool|void True or no return value to continue or false to abort |
| 25 | */ |
| 26 | public function onProtectionForm__showLogExtract( $article, $out ); |
| 27 | } |