Skip to content

Commit 4dbabf6

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Fix custom form type docs.
2 parents c8fab23 + abfa3fd commit 4dbabf6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

form/create_custom_field_type.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,8 @@ fragments used to render the types:
363363
364364
{# ... here you will add the Twig code ... #}
365365
366-
Then, update the :ref:`form_themes option <reference-twig-tag-form-theme>` to
367-
add this new template at the beginning of the list (the first one overrides the
368-
rest of files):
366+
Then, update the :ref:`form_themes option <config-twig-form-themes>` to
367+
add this new template at the end of the list (each theme overrides all the previous ones):
369368

370369
.. configuration-block::
371370

@@ -374,8 +373,8 @@ rest of files):
374373
# config/packages/twig.yaml
375374
twig:
376375
form_themes:
377-
- 'form/custom_types.html.twig'
378376
- '...'
377+
- 'form/custom_types.html.twig'
379378
380379
.. code-block:: xml
381380
@@ -390,8 +389,8 @@ rest of files):
390389
https://symfony.com/schema/dic/twig/twig-1.0.xsd">
391390
392391
<twig:config>
393-
<twig:form-theme>form/custom_types.html.twig</twig:form-theme>
394392
<twig:form-theme>...</twig:form-theme>
393+
<twig:form-theme>form/custom_types.html.twig</twig:form-theme>
395394
</twig:config>
396395
</container>
397396
@@ -402,8 +401,8 @@ rest of files):
402401
403402
return static function (TwigConfig $twig): void {
404403
$twig->formThemes([
405-
'form/custom_types.html.twig',
406404
'...',
405+
'form/custom_types.html.twig',
407406
]);
408407
};
409408

0 commit comments

Comments
 (0)