Page MenuHomeWickedGov Phorge

EchoWelcomePresentationModel.php
No OneTemporary

Size
572 B
Referenced Files
None
Subscribers
None

EchoWelcomePresentationModel.php

<?php
namespace MediaWiki\Extension\Notifications\Formatters;
use MediaWiki\Title\Title;
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(),
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 19 2026, 19:39 (6 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5b/7f/627f918198b44a22ff48031df597
Default Alt Text
EchoWelcomePresentationModel.php (572 B)

Event Timeline