mediawiki-extensions-Echo/includes/formatters/EmailUserPresentationModel.php
James D. Forrester 8c810dff48 build: Update mediawiki/mediawiki-codesniffer to 0.7.1
Also added "composer fix" command.

Change-Id: I25cb61b3b92798f1259d1575a336e2b056d5764f
2016-12-05 15:54:30 -08:00

22 lines
474 B
PHP

<?php
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;
}
}