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 @@ -363,9 +363,8 @@ fragments used to render the types:
363
363
364
364
{# ... here you will add the Twig code ... #}
365
365
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):
369
368
370
369
.. configuration-block ::
371
370
@@ -374,8 +373,8 @@ rest of files):
374
373
# config/packages/twig.yaml
375
374
twig :
376
375
form_themes :
377
- - ' form/custom_types.html.twig'
378
376
- ' ...'
377
+ - ' form/custom_types.html.twig'
379
378
380
379
.. code-block :: xml
381
380
@@ -390,8 +389,8 @@ rest of files):
390
389
https://symfony.com/schema/dic/twig/twig-1.0.xsd" >
391
390
392
391
<twig : config >
393
- <twig : form-theme >form/custom_types.html.twig</twig : form-theme >
394
392
<twig : form-theme >...</twig : form-theme >
393
+ <twig : form-theme >form/custom_types.html.twig</twig : form-theme >
395
394
</twig : config >
396
395
</container >
397
396
@@ -402,8 +401,8 @@ rest of files):
402
401
403
402
return static function (TwigConfig $twig): void {
404
403
$twig->formThemes([
405
- 'form/custom_types.html.twig',
406
404
'...',
405
+ 'form/custom_types.html.twig',
407
406
]);
408
407
};
409
408
You can’t perform that action at this time.
0 commit comments