SpecialPage::getTitleFor( 'OATHManage' )->getLocalURL(), 'label' => $this->msg( 'oathauth-notifications-recoverycodesleft-primary' )->text() ]; } /** @inheritDoc */ public function getSecondaryLinks() { $link = $this->msg( 'oathauth-notifications-recoverycodesleft-helplink' )->inContentLanguage(); $title = Title::newFromText( $link->plain() ); if ( !$title ) { // Invalid title, skip return []; } return [ [ 'url' => $title->getLocalURL(), 'label' => $this->msg( 'oathauth-notifications-recoverycodesleft-help' )->text(), 'icon' => 'help', ] ]; } /** @inheritDoc */ public function getBodyMessage() { $msg = $this->getMessageWithAgent( 'notification-body-oathauth-recoverycodesleft' ); $msg->params( $this->event->getExtraParam( 'codeCount', 0 ) ); $msg->params( $this->event->getExtraParam( 'generatedCount', TOTPKey::RECOVERY_CODES_COUNT ) ); return $msg; } }