/** * Overwriting the getSize method to use Klevu's result of total records. * * @return int */ public function getSize() { if (!$this->isExtensionConfigured()) { return parent::getSize(); } $response = $this->getKlevuResponse()->getData('meta'); return (int) $response['totalResultsFound']; }