ParsoidParser: Record ParserOptions watcher on ParserOutput object
[mediawiki.git] / includes / Hook / EditPageBeforeEditButtonsHook.php
blob8dbc4170b9ef78c0838ca2ddb3ca845450f1de7f
1 <?php
3 namespace MediaWiki\Hook;
5 use MediaWiki\EditPage\EditPage;
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "EditPageBeforeEditButtons" to register handlers implementing this interface.
11 * @stable to implement
12 * @ingroup Hooks
14 interface EditPageBeforeEditButtonsHook {
15 /**
16 * Use this hook to modify the edit buttons below the textarea in the edit form.
18 * @since 1.35
20 * @param EditPage $editpage Current EditPage object
21 * @param array &$buttons Array of edit buttons, "Save", "Preview", "Live", and "Diff"
22 * @param int &$tabindex HTML tabindex of the last edit check/button
23 * @return bool|void True or no return value to continue or false to abort
25 public function onEditPageBeforeEditButtons( $editpage, &$buttons, &$tabindex );