src/apis/SearchController.php
private function transformGenericSearchToData($response)
    {
        if ($response instanceof ActiveQueryInterface) {
            return $response->asArray(true)->all();
        } elseif ($response instanceof QueryInterface) {
            return $response->all();
        }
        
        return $response;
    }
private function transformGenericSearchToData($response)
    {
        if ($response instanceof ActiveQueryInterface) {
            return $response->asArray(true)->all();
        } elseif ($response instanceof QueryInterface) {
            return $response->all();
        }
        
        return $response;
    }
private function transformGenericSearchToData ( $ response ) { if ( $ response instanceof ActiveQueryInterface ) { return $ response -> asArray ( true ) -> all ( ) ; } elseif ( $ response instanceof QueryInterface ) { return $ response -> all ( ) ; } return $ response ; }
Transform the different generic search response into an array.

@param array|\yii\db\QueryInterface|\yii\db\ActiveQueryInterface $response
@return array
@since 1.2.2
Transform the different generic search response into an array .