$query = [];
}
- $link = $this->getLinkRenderer()->makeKnownLink(
+ $link = Linker::linkKnown(
$nt,
null,
$row->page_is_redirect ? [ 'class' => 'mw-redirect' ] : [],
$title = $this->getPageTitle();
}
- $linkRenderer = $this->getLinkRenderer();
-
// always show a "<- Links" link
$links = [
- 'links' => $linkRenderer->makeKnownLink(
+ 'links' => Linker::linkKnown(
$title,
- new HtmlArmor( $text ),
+ $text,
[],
[ 'target' => $target->getPrefixedText() ]
),
// check, if the content model is editable through action=edit
ContentHandler::getForTitle( $target )->supportsDirectEditing()
) {
- $links['edit'] = $linkRenderer->makeKnownLink(
+ $links['edit'] = Linker::linkKnown(
$target,
- new HtmlArmor( $editText ),
+ $editText,
[],
[ 'action' => 'edit' ]
);
}
function makeSelfLink( $text, $query ) {
- return $this->getLinkRenderer()->makeKnownLink(
+ return Linker::linkKnown(
$this->selfTitle,
- new HtmlArmor( $text ),
+ $text,
[],
$query
);