| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
| 6 | use MediaWiki\EditPage\EditPage; |
| 7 | use MediaWiki\Output\OutputPage; |
| 8 | |
| 9 | /** |
| 10 | * This is a hook handler interface, see docs/Hooks.md. |
| 11 | * Use the hook name "EditPage::showStandardInputs:options" to register handlers implementing this interface. |
| 12 | * |
| 13 | * @stable to implement |
| 14 | * @ingroup Hooks |
| 15 | */ |
| 16 | interface EditPage__showStandardInputs_optionsHook { |
| 17 | /** |
| 18 | * Use this hook to inject form fields into the editOptions area. |
| 19 | * |
| 20 | * @since 1.35 |
| 21 | * |
| 22 | * @param EditPage $editor |
| 23 | * @param OutputPage $out OutputPage instance to write to |
| 24 | * @param int &$tabindex HTML tabindex of the last edit check/button |
| 25 | * @return bool|void Return value is ignored; this hook should always return true |
| 26 | */ |
| 27 | public function onEditPage__showStandardInputs_options( $editor, $out, |
| 28 | &$tabindex |
| 29 | ); |
| 30 | } |