1<?php 2 3namespace MediaWiki\Hook; 4 5use EditPage; 6 7/** 8 * @stable to implement 9 * @ingroup Hooks 10 */ 11interface AlternateEditHook { 12 /** 13 * This hook is called before checking if a user can edit a page and before showing 14 * the edit form ( EditPage::edit() ). This is triggered on &action=edit. 15 * 16 * @since 1.35 17 * 18 * @param EditPage $editPage 19 * @return bool|void True or no return value to continue or false to abort 20 */ 21 public function onAlternateEdit( $editPage ); 22} 23