getMainWANObjectCache() ); $totals = $totalsLookup->getTotals(); ApiResult::setArrayType( $totals, 'assoc' ); $this->getResult()->addValue( [ 'query', 'linterstats' ], 'totals', $totals ); } public function getExamplesMessages() { return [ 'action=query&meta=linterstats' => 'apihelp-query+linterstats-example-1', ]; } }