@@ -10,11 +10,11 @@ Twig is the default template engine for Symfony. By itself, it already contains
10
10
a lot of built-in functions, filters, tags and tests (learn more about them
11
11
from the `Twig Reference `_).
12
12
13
- Symfony adds more custom extensions on top of Twig to integrate some components
14
- into the Twig templates. You can find more information about the custom
13
+ Symfony adds custom extensions on top of Twig to integrate some components
14
+ into the Twig templates. The following sections describe the custom
15
15
:ref: `functions <reference-twig-functions >`, :ref: `filters <reference-twig-filters >`,
16
16
:ref: `tags <reference-twig-tags >` and :ref: `tests <reference-twig-tests >`
17
- that are added when using the Symfony Core Framework.
17
+ that are available when using the Symfony Core Framework.
18
18
19
19
There may also be tags in bundles you use that aren't listed here.
20
20
@@ -50,6 +50,8 @@ The render strategy can be specified in the ``strategy`` key of the options.
50
50
51
51
The URI can be generated by other functions, like `path `_ and `url `_.
52
52
53
+ .. _reference-twig-function-render-esi :
54
+
53
55
render_esi
54
56
~~~~~~~~~~
55
57
@@ -62,7 +64,7 @@ render_esi
62
64
``options ``
63
65
**type **: ``array `` **default **: ``[] ``
64
66
65
- Generates an ESI tag when possible or falls back to the behaviour of
67
+ Generates an ESI tag when possible or falls back to the behavior of
66
68
`render `_ function instead. For more information, see
67
69
:ref: `templating-embedding-controller `.
68
70
@@ -95,7 +97,8 @@ controller
95
97
**type **: ``array `` **default **: ``[] ``
96
98
97
99
Returns an instance of ``ControllerReference `` to be used with functions like
98
- :ref: `render() <reference-twig-function-render >` and `render_esi() <render_esi> `.
100
+ :ref: `render() <reference-twig-function-render >` and
101
+ :ref: `render_esi() <reference-twig-function-render-esi >`.
99
102
100
103
asset
101
104
~~~~~
@@ -107,7 +110,7 @@ asset
107
110
``path ``
108
111
**type **: ``string ``
109
112
``packageName ``
110
- **type **: ``string``| ``null `` **default **: ``null ``
113
+ **type **: ``string `` | ``null `` **default **: ``null ``
111
114
112
115
Returns a public path to ``path ``, which takes into account the base path set
113
116
for the package and the URL path. More information in
@@ -121,7 +124,7 @@ asset_version
121
124
{{ asset_version(packageName) }}
122
125
123
126
``packageName ``
124
- **type **: ``string``| ``null `` **default **: ``null ``
127
+ **type **: ``string `` | ``null `` **default **: ``null ``
125
128
126
129
Returns the current version of the package, more information in
127
130
:ref: `book-templating-assets `.
@@ -227,7 +230,7 @@ form_label
227
230
``variables ``
228
231
**type **: ``array `` **default **: ``[] ``
229
232
230
- Renders the label for the given field, mre information in
233
+ Renders the label for the given field, more information in
231
234
:ref: `the Twig Form reference <reference-forms-twig-label >`.
232
235
233
236
form_row
@@ -463,7 +466,7 @@ abbr_class
463
466
**type **: ``string ``
464
467
465
468
Generates an ``<abbr> `` element with the short name of a PHP class (the FQCN
466
- will be shown in a tooltip when a user hovers over de element).
469
+ will be shown in a tooltip when a user hovers over the element).
467
470
468
471
abbr_method
469
472
~~~~~~~~~~~
@@ -501,7 +504,7 @@ format_args_as_text
501
504
``args ``
502
505
**type **: ``array ``
503
506
504
- Equal to the `format_args `_ filter, but without using tags.
507
+ Equal to the `format_args `_ filter, but without using HTML tags.
505
508
506
509
file_excerpt
507
510
~~~~~~~~~~~~
@@ -515,7 +518,7 @@ file_excerpt
515
518
``line ``
516
519
**type **: ``integer ``
517
520
518
- Generates an excerpt of 7 lines around the given ``line ``.
521
+ Generates an excerpt of seven lines around the given ``line ``.
519
522
520
523
format_file
521
524
~~~~~~~~~~~
@@ -545,7 +548,7 @@ format_file_from_text
545
548
``text ``
546
549
**type **: ``string ``
547
550
548
- Uses `| format_file <format_file> ` to improve the output of default PHP errors.
551
+ Uses `format_file `_ to improve the output of default PHP errors.
549
552
550
553
file_link
551
554
~~~~~~~~~
@@ -575,7 +578,7 @@ form_theme
575
578
``form ``
576
579
**type **: ``FormView ``
577
580
``resources ``
578
- **type **: ``array``| ``string ``
581
+ **type **: ``array `` | ``string ``
579
582
580
583
Sets the resources to override the form theme for the given form view instance.
581
584
You can use ``_self `` as resources to set it to the current resource. More
0 commit comments