When you override a brick, you sometimes have to use your own template.
To do this, you can use the ->setTemplate
method and specify the path to your template
⚠️ The path you need to specify is only the folder where yourindex.html.twig
file is located.
$indexBricks[] = ListConfig::new()
->addFields($this->getFields(CrudConfigInterface::INDEX))
->setTemplate('crudit/commande/list');