src/Html/Builder.php
protected function makeDataScript(array $data)
    {
        $script = '';
        foreach ($data as $key => $value) {
            $script .= PHP_EOL . "data.{$key} = '{$value}';";
        }

        return $script;
    }
protected function makeDataScript(array $data)
    {
        $script = '';
        foreach ($data as $key => $value) {
            $script .= PHP_EOL . "data.{$key} = '{$value}';";
        }

        return $script;
    }
protected function makeDataScript ( array $ data ) { $ script = '' ; foreach ( $ data as $ key => $ value ) { $ script .= PHP_EOL . "data.{$key} = '{$value}';" ; } return $ script ; }
Make a data script to be appended on ajax request of dataTables.

@param array $data
@return string
Make a data script to be appended on ajax request of dataTables .