mediawiki-extensions-Echo/includes/formatters/WelcomePresentationModel.php

26 lines
472 B
PHP
Raw Normal View History

<?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 array(
$title->getFullURL(),
$this->msg( 'notification-welcome-linktext' )->text(),
);
}
}