File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Original file line number Diff line number Diff line change @@ -45,9 +45,16 @@ Functions
45
45
| ``form_rest(form, 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
+ | ``csrf_token(intention) `` | This will render a CSRF token, use this function if you want CSRF protection without |
49
+ | | creating a form |
50
+ +----------------------------------------------------+--------------------------------------------------------------------------------------------+
48
51
| ``is_granted(role, object = null, field = null) `` | This will return ``true `` if the current user has the required role, more |
49
52
| | information in ":ref: `book-security-template `" |
50
53
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
54
+ | ``logout_path(key) `` | This will generate the relative logout URL for the given firewall |
55
+ +----------------------------------------------------+--------------------------------------------------------------------------------------------+
56
+ | ``logout_url(key) `` | Equal to ``logout_path(...) `` but this will generate an absolute url |
57
+ +----------------------------------------------------+--------------------------------------------------------------------------------------------+
51
58
| ``path(name, parameters = {}) `` | Get a relative url for the given route, more information in |
52
59
| | ":ref: `book-templating-pages `". |
53
60
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
You can’t perform that action at this time.
0 commit comments