mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 00:05:29 +00:00
8c810dff48
Also added "composer fix" command. Change-Id: I25cb61b3b92798f1259d1575a336e2b056d5764f
26 lines
487 B
PHP
26 lines
487 B
PHP
<?php
|
|
|
|
class EchoWelcomePresentationModel extends EchoEventPresentationModel {
|
|
|
|
public function getIconType() {
|
|
return 'site';
|
|
}
|
|
|
|
public function getPrimaryLink() {
|
|
$msg = $this->msg( 'notification-welcome-link' );
|
|
if ( $msg->isDisabled() ) {
|
|
return false;
|
|
}
|
|
|
|
$title = Title::newFromText( $msg->plain() );
|
|
if ( !$title ) {
|
|
return false;
|
|
}
|
|
|
|
return [
|
|
'url' => $title->getFullURL(),
|
|
'label' => $this->msg( 'notification-welcome-linktext' )->text(),
|
|
];
|
|
}
|
|
}
|