From 2d1f8dc57f443bd8cab8d0e65c1fac964f73d057 Mon Sep 17 00:00:00 2001 From: Hans Mackowiak Date: Thu, 15 Jun 2023 09:45:17 +0200 Subject: [PATCH] remove need for setup in twig config --- docs/reference/form_types.rst | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/docs/reference/form_types.rst b/docs/reference/form_types.rst index 5c3be0d4..42e83095 100644 --- a/docs/reference/form_types.rst +++ b/docs/reference/form_types.rst @@ -237,17 +237,7 @@ They will allow you to have a JS date picker onto your form fields as follows: .. image:: ../images/datepicker.png -In order to use them, you'll need to perform a bit of setup: - -.. code-block:: yaml - - # config/packages/twig.yaml - - twig: - form_themes: - - '@SonataForm/Form/datepicker.html.twig' - -Finally, in your form, you may use the form type as follows:: +In your form, you may use the form type as follows:: // src/Admin/PageAdmin.php