mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 16:04:35 +00:00
63eef35026
Bug: T121829 Change-Id: Ifb52ad5605a56d27e5951479326689242a49430e
29 lines
588 B
PHP
29 lines
588 B
PHP
<?php
|
|
|
|
class EchoForeignPresentationModel extends EchoEventPresentationModel {
|
|
public function getIconType() {
|
|
return 'site';
|
|
}
|
|
|
|
public function getPrimaryLink() {
|
|
return false;
|
|
}
|
|
|
|
protected function getHeaderMessageKey() {
|
|
$data = $this->event->getExtra();
|
|
$section = $data['section'];
|
|
|
|
return "notification-header-{$this->type}-{$section}";
|
|
}
|
|
|
|
public function getHeaderMessage() {
|
|
$msg = parent::getHeaderMessage();
|
|
|
|
$data = $this->event->getExtra();
|
|
$msg->params( reset( $data['wikis'] ) );
|
|
$msg->numParams( count( $data['wikis'] ) - 1 );
|
|
|
|
return $msg;
|
|
}
|
|
}
|