IndexPager - document getLinkRenderer

Had to look through git blame to find when it was added (1.34)
for a recent review, would be helpful for others if it was easily
available in a doc block; since I'm adding a doc block, also
add @return

Change-Id: I07c4cdda176f309204fa3c2cfe6c165d1df850af
This commit is contained in:
DannyS712 2020-12-14 08:22:09 +00:00
parent 4365aa0f8d
commit 2c6e42c434

View file

@ -973,6 +973,10 @@ abstract class IndexPager extends ContextSource implements Pager {
return $prevNext->buildPrevNextNavigation( $title, $offset, $limit, $query, $atend );
}
/**
* @since 1.34
* @return LinkRenderer
*/
protected function getLinkRenderer() {
if ( $this->linkRenderer === null ) {
$this->linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();