We want to add some extra info to the fields from a database, like row position, column position, bootstrap colunm size, etc.
What do you mean when you say “exteding them”?
I need to change the Bake.filterFields() method, so it can make a query to the database and load the fields properties and use them in the twig template.
In case anyone was like me and spent ages looking for a solution to extending bake, the answer is in the documentation here. You can create your own helper files (explanation here), and then load them into bake using the bake initialize event in your app’s config/bootstrap_cli.