0

I need to pass here admin/country.HTML.twig object with data or any data like

public function configureCrud(Crud $crud): Crud
{
    return $crud
        ->overrideTemplates([
            'crud/detail' => 'admin/country.html.twig',
        ])
    ;
}
dbrumann
  • 16,803
  • 2
  • 42
  • 58
  • What is `Crud` and what does the signature for `overrideTemplates` look like? Can you expand your example? With twig’s render function you can just pass an array as second argument where the keys are the name of the template variable. I assume this is similar here, but I can’t tell without knowing what Crud is and where it comes from – dbrumann Sep 21 '22 at 13:09

0 Answers0