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 | * @file |
| 4 | * @ingroup Extensions |
| 5 | * @copyright 2011-2021 VisualEditor Team and others; see AUTHORS.txt |
| 6 | * @license MIT |
| 7 | */ |
| 8 | |
| 9 | namespace MediaWiki\Extension\VisualEditor; |
| 10 | |
| 11 | use MediaWiki\Output\OutputPage; |
| 12 | use MediaWiki\Skin\Skin; |
| 13 | |
| 14 | interface VisualEditorBeforeEditorHook { |
| 15 | |
| 16 | /** |
| 17 | * This hook is executed in before deciding if the editor is available on a certain page |
| 18 | * |
| 19 | * If the hook returns false, the editor is not available. |
| 20 | * |
| 21 | * @param OutputPage $output |
| 22 | * @param Skin $skin |
| 23 | * @return bool |
| 24 | */ |
| 25 | public function onVisualEditorBeforeEditor( |
| 26 | OutputPage $output, |
| 27 | Skin $skin |
| 28 | ): bool; |
| 29 | |
| 30 | } |