@@ -26,28 +26,28 @@ Functions
26
26
| ``asset_version(packageName = null) `` | Get the current version of the package, more information in |
27
27
| | ":ref: `book-templating-assets `". |
28
28
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
29
- | ``form_enctype(form ) `` | This will render the required ``enctype="multipart/form-data" `` attribute |
29
+ | ``form_enctype(view ) `` | This will render the required ``enctype="multipart/form-data" `` attribute |
30
30
| | if the form contains at least one file upload field, more information in |
31
31
| | in :ref: `the Twig Form reference<reference-forms-twig-enctype> `. |
32
32
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
33
- | ``form_widget(form , variables = {}) `` | This will render a complete form or a specific HTML widget of a field, |
33
+ | ``form_widget(view , variables = {}) `` | This will render a complete form or a specific HTML widget of a field, |
34
34
| | more information in :ref: `the Twig Form reference<reference-forms-twig-widget> `. |
35
35
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
36
- | ``form_errors(form ) `` | This will render any errors for the given field or the "global" errors, |
36
+ | ``form_errors(view ) `` | This will render any errors for the given field or the "global" errors, |
37
37
| | more information in :ref: `the Twig Form reference<reference-forms-twig-errors> `. |
38
38
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
39
- | ``form_label(form , label = null, variables = {}) `` | This will render the label for the given field, more information in |
39
+ | ``form_label(view , label = null, variables = {}) `` | This will render the label for the given field, more information in |
40
40
| | :ref: `the Twig Form reference<reference-forms-twig-label> `. |
41
41
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
42
- | ``form_row(form , variables = {}) `` | This will render the row (the field's label, errors and widget) of the |
42
+ | ``form_row(view , variables = {}) `` | This will render the row (the field's label, errors and widget) of the |
43
43
| | given field, more information in :ref: `the Twig Form reference<reference-forms-twig-row> `. |
44
44
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
45
- | ``form_rest(form , variables = {}) `` | This will render all fields that have not yet been rendered, more |
45
+ | ``form_rest(view , variables = {}) `` | This will render all fields that have not yet been rendered, more |
46
46
| | information in :ref: `the Twig Form reference<reference-forms-twig-rest> `. |
47
47
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
48
48
| ``_form_is_choice_group(label) `` | This will return ``true `` if the label is a choice group. |
49
49
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
50
- | ``_form_is_choice_selected(form , choice) `` | This will return ``true `` if the given choice is selected. |
50
+ | ``_form_is_choice_selected(view , choice) `` | This will return ``true `` if the given choice is selected. |
51
51
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
52
52
| ``is_granted(role, object = null, field = null) `` | This will return ``true `` if the current user has the required role, more |
53
53
| | information in ":ref: `book-security-template `" |
@@ -87,7 +87,7 @@ Filters
87
87
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
88
88
| ``path|file_excerpt(line) `` | This will render an excerpt of a code file around the given line. |
89
89
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
90
- | ``path|format_file(line, text) `` | This will render a file path in a link. |
90
+ | ``path|format_file(line, text = null ) `` | This will render a file path in a link. |
91
91
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
92
92
| ``exceptionMessage|format_file_from_text `` | Equal to ``format_file `` except it parsed the default PHP error |
93
93
| | string into a file path (i.e. 'in foo.php on line 45') |
0 commit comments