/** * Prepare array with all available insights pages * * @return array */ public static function getInsightsPages() { global $wgEnableInsightsInfoboxes; if (!empty($wgEnableInsightsInfoboxes) && !isset(self::$insightsPages[InsightsUnconvertedInfoboxesModel::INSIGHT_TYPE])) { self::$insightsPages = array_merge([InsightsUnconvertedInfoboxesModel::INSIGHT_TYPE => 'InsightsUnconvertedInfoboxesModel'], self::$insightsPages); } return self::$insightsPages; }