Hi,
Is it possible to perform a custom function to rename every column in my datatable? I know you can use ColumnRename in Processes like:
``
public function setup()
{
...
->pipe(new ColumnRename(array(
"column0"=>"id",
"column1"=>"name"
)))
...
}```
However I cannot use this because my columns are dynamic and do not know the column names before hand.
I want to be able to do something like:
->pipe(new ColumnRename(function($columnNames){
//loop through each column name and do something
...
return $columnNames;
}))
As always thanks for your help.