Good morning, I am creating my own cake bake template, I have it in src/Template/Bake. It works fine, but I want to know where can I find the class that send variables to the twig view.
Example:
I want to know where the variables “fields”, “schema” and “modelObject” values come from.
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.
Thanks.
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.