*/ final class AddressField implements FieldInterface { use FieldTrait; public static function new(string $propertyName, ?string $label = null): self { return (new self()) ->hideOnIndex() ->setProperty($propertyName) ->setLabel($label) //->setTemplatePath('@LcSov/adminlte/crud/field/toggle.html.twig') ->setFormType(AddressType::class); } }