return false;
}
- /**
- * @return string HTML
- */
protected function getDescription() {
- return $this->msg( 'addwatch' )->escaped();
+ return '';
}
public function onSubmit( $data ) {
parent::checkCanExecute( $user );
}
+ protected function usesOOUI() {
+ return true;
+ }
+
+ protected function getFormFields() {
+ return [
+ 'intro' => [
+ 'type' => 'info',
+ 'vertical-label' => true,
+ 'raw' => true,
+ 'default' => $this->msg( 'confirm-watch-top' )->parse()
+ ]
+ ];
+ }
+
protected function alterForm( HTMLForm $form ) {
+ $form->setWrapperLegendMsg( 'addwatch' );
$form->setSubmitTextMsg( 'confirm-watch-button' );
$form->setTokenSalt( 'watch' );
}
- protected function preText() {
- return $this->msg( 'confirm-watch-top' )->parse();
- }
-
public function onSuccess() {
$msgKey = $this->getTitle()->isTalkPage() ? 'addedwatchtext-talk' : 'addedwatchtext';
$this->getOutput()->addWikiMsg( $msgKey, $this->getTitle()->getPrefixedText() );
}
- /* Static utility methods */
-
/**
* Watch or unwatch a page
* @since 1.22