File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -362,9 +362,8 @@ fragments used to render the types:
362
362
363
363
{# ... here you will add the Twig code ... #}
364
364
365
- Then, update the :ref: `form_themes option <reference-twig-tag-form-theme >` to
366
- add this new template at the beginning of the list (the first one overrides the
367
- rest of files):
365
+ Then, update the :ref: `form_themes option <config-twig-form-themes >` to
366
+ add this new template at the end of the list (each theme overrides all the previous ones):
368
367
369
368
.. configuration-block ::
370
369
@@ -373,8 +372,8 @@ rest of files):
373
372
# config/packages/twig.yaml
374
373
twig :
375
374
form_themes :
376
- - ' form/custom_types.html.twig'
377
375
- ' ...'
376
+ - ' form/custom_types.html.twig'
378
377
379
378
.. code-block :: xml
380
379
@@ -389,8 +388,8 @@ rest of files):
389
388
https://symfony.com/schema/dic/twig/twig-1.0.xsd" >
390
389
391
390
<twig : config >
392
- <twig : form-theme >form/custom_types.html.twig</twig : form-theme >
393
391
<twig : form-theme >...</twig : form-theme >
392
+ <twig : form-theme >form/custom_types.html.twig</twig : form-theme >
394
393
</twig : config >
395
394
</container >
396
395
@@ -401,8 +400,8 @@ rest of files):
401
400
402
401
return static function (TwigConfig $twig) {
403
402
$twig->formThemes([
404
- 'form/custom_types.html.twig',
405
403
'...',
404
+ 'form/custom_types.html.twig',
406
405
]);
407
406
};
408
407
You can’t perform that action at this time.
0 commit comments