mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-24 05:34:23 +00:00
7619a76877
Change-Id: I5bf398cdb76a577543f6526ac1bee4a73897103d
24 lines
531 B
PHP
24 lines
531 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
|
|
|
class EchoEmailUserPresentationModel extends EchoEventPresentationModel {
|
|
|
|
public function getIconType() {
|
|
return 'emailuser';
|
|
}
|
|
|
|
public function getPrimaryLink() {
|
|
return false;
|
|
}
|
|
|
|
public function getSecondaryLinks() {
|
|
return [ $this->getAgentLink() ];
|
|
}
|
|
|
|
public function getBodyMessage() {
|
|
$preview = $this->event->getExtraParam( 'preview' );
|
|
return $preview ? $this->msg( 'notification-body-emailuser' )->plaintextParams( $preview ) : false;
|
|
}
|
|
}
|