public static function normalizeResponse(DataTablesResponseInterface $response) {

        $output = [];

        $output["data"]            = $response->getData();
        $output["draw"]            = $response->getDraw();
        $output["recordsFiltered"] = $response->getRecordsFiltered();
        $output["recordsTotal"]    = $response->getRecordsTotal();

        return $output;
    }
public static function normalizeResponse(DataTablesResponseInterface $response) {

        $output = [];

        $output["data"]            = $response->getData();
        $output["draw"]            = $response->getDraw();
        $output["recordsFiltered"] = $response->getRecordsFiltered();
        $output["recordsTotal"]    = $response->getRecordsTotal();

        return $output;
    }
public static function normalizeResponse ( DataTablesResponseInterface $ response ) { $ output = [ ] ; $ output [ "data" ] = $ response -> getData ( ) ; $ output [ "draw" ] = $ response -> getDraw ( ) ; $ output [ "recordsFiltered" ] = $ response -> getRecordsFiltered ( ) ; $ output [ "recordsTotal" ] = $ response -> getRecordsTotal ( ) ; return $ output ; }
Normalize a response.

@param DataTablesResponseInterface $response The response.
@return array Returns the normalized response.
Normalize a response .