useTransactionalTimeLimit(); $out = $this->getOutput(); $out->setRobotPolicy( 'noindex,nofollow' ); // The editor should always see the latest content when starting their edit. // Also to ensure cookie blocks can be set (T152462). $out->enableClientCache( false ); if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) { $out->addModuleStyles( [ 'mediawiki.ui.input', 'mediawiki.ui.checkbox', ] ); } $article = $this->getArticle(); if ( $this->getHookRunner()->onCustomEditor( $article, $this->getUser() ) ) { $editor = new EditPage( $article ); $editor->setContextTitle( $this->getTitle() ); $editor->edit(); } } public function doesWrites() { return true; } }