getTitle(), $this->getUser() ); return true; } protected function getFormFields() { return [ 'intro' => [ 'type' => 'info', 'vertical-label' => true, 'raw' => true, 'default' => $this->msg( 'confirm-unwatch-top' )->parse() ] ]; } protected function alterForm( HTMLForm $form ) { parent::alterForm( $form ); $form->setWrapperLegendMsg( 'removewatch' ); $form->setSubmitTextMsg( 'confirm-unwatch-button' ); } public function onSuccess() { $msgKey = $this->getTitle()->isTalkPage() ? 'removedwatchtext-talk' : 'removedwatchtext'; $this->getOutput()->addWikiMsg( $msgKey, $this->getTitle()->getPrefixedText() ); } public function doesWrites() { return true; } }