Paginate for custom data

I have data need process after fetch it with query … how could I link it with the $this->paginate after I process it?
is there something link $processedData = $this->paginate($newData); ?

Million thanks

As far as I know that’s not really possible. But depending on how exactly you need to process it, accessors and mutators might do the trick:

Alternatively you could consider using a helper.