isBundled() && ( $this->event->getExtraParam( 'count', 0 ) > 0 ) ) { $msg = $this->msg( 'notification-bundled-header-login-fail' ); $msg->params( $this->event->getExtraParam( 'count', 0 ) ); return $msg; } elseif ( $this->event->getExtraParam( 'count', 0 ) > 0 ) { $msg = $this->msg( 'notification-unbundled-header-login-fail' ); return $msg; } else { $msg = $this->msg( 'notification-header-login-success' ); return $msg; } } /** * Get links to be used in the notification * * @return array Link to Special:ChangePassword */ public function getSecondaryLinks() { $changePasswordLink = [ 'url' => SpecialPage::getTitleFor( 'ChangePassword' )->getFullURL(), 'label' => $this->msg( 'changepassword' )->text(), 'description' => '', 'icon' => 'lock', 'prioritized' => true, ]; return [ $changePasswordLink ]; } }