msg( 'removewatch' )->escaped(); } public function onSubmit( $data ) { self::doUnwatch( $this->getTitle(), $this->getUser() ); return true; } protected function alterForm( HTMLForm $form ) { $form->setSubmitTextMsg( 'confirm-unwatch-button' ); } protected function preText() { return $this->msg( 'confirm-unwatch-top' )->parse(); } public function onSuccess() { $msgKey = $this->getTitle()->isTalkPage() ? 'removedwatchtext-talk' : 'removedwatchtext'; $this->getOutput()->addWikiMsg( $msgKey, $this->getTitle()->getPrefixedText() ); } public function doesWrites() { return true; } }