3 namespace MediaWiki\Hook
;
5 use MediaWiki\EditPage\EditPage
;
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
14 interface EditPageBeforeEditButtonsHook
{
16 * Use this hook to modify the edit buttons below the textarea in the edit form.
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 );