Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
SummaryPageView
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 1
12
0.00% covered (danger)
0.00%
0 / 1
 show
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 1
12
1<?php
2
3use MediaWiki\MediaWikiServices;
4
5class SummaryPageView extends LqtView {
6    public function show() {
7        $thread = Threads::withSummary( $this->article->getPage() );
8        if ( $thread && $thread->root() ) {
9            $t = $thread->root()->getTitle();
10            $link = MediaWikiServices::getInstance()->getLinkRenderer()->makeLink( $t );
11            $this->output->setSubtitle(
12                wfMessage( 'lqt_summary_subtitle' )->rawParams( $link )->parse() );
13        }
14        return true;
15    }
16}