| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Extension\Notifications\Formatters; |
| 4 | |
| 5 | class EchoEmailUserPresentationModel extends EchoEventPresentationModel { |
| 6 | |
| 7 | public function getIconType() { |
| 8 | return 'emailuser'; |
| 9 | } |
| 10 | |
| 11 | public function getPrimaryLink() { |
| 12 | return false; |
| 13 | } |
| 14 | |
| 15 | public function getSecondaryLinks() { |
| 16 | return [ $this->getAgentLink() ]; |
| 17 | } |
| 18 | |
| 19 | public function getBodyMessage() { |
| 20 | $preview = $this->event->getExtraParam( 'preview' ); |
| 21 | return $preview ? $this->msg( 'notification-body-emailuser' )->plaintextParams( $preview ) : false; |
| 22 | } |
| 23 | } |