Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
EchoEmailUserPresentationModel | |
0.00% |
0 / 5 |
|
0.00% |
0 / 4 |
30 | |
0.00% |
0 / 1 |
getIconType | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getPrimaryLink | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getSecondaryLinks | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getBodyMessage | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 |
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 | } |