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 | interface VisualEditorRegisterChangeTagsHook { |
| 12 | |
| 13 | /** |
| 14 | * This hook is executed when VisualEditor collects the change tags that it knows. |
| 15 | * |
| 16 | * Tags added here work in the same way as the tags of VisualEditor. VisualEditor |
| 17 | * applies them to the edit if the client sends them in the vetags parameter, and |
| 18 | * lists them on Special:Tags. The extension that adds a tag must supply the |
| 19 | * related tag-* interface messages. |
| 20 | * |
| 21 | * @param string[] &$tags Tags to add |
| 22 | * @return void |
| 23 | */ |
| 24 | public function onVisualEditorRegisterChangeTags( array &$tags ): void; |
| 25 | |
| 26 | } |