/** * Returns list of top articles (most viewed) in the category * @return array */ protected function getArticles() { wfProfileIn(__METHOD__); $service = new CategoryService($this->categoryPage->mTitle); $result = $service->getTopArticles($this->confMaxArticles); wfProfileOut(__METHOD__); return $result; }