getUser(); MediaWikiServices::getInstance() ->getTalkPageNotificationManager() ->removeUserHasNewMessages( $user ); $this->getResult()->addValue( null, $this->getModuleName(), 'success' ); } public function isWriteMode() { return true; } public function mustBePosted() { return true; } protected function getExamplesMessages() { return [ 'action=clearhasmsg' => 'apihelp-clearhasmsg-example-1', ]; } public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:ClearHasMsg'; } }