8000 Document Twig test "rootform" by yceruto · Pull Request #10022 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Document Twig test "rootform" #10022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reword
  • Loading branch information
javiereguiluz authored Jul 5, 2018
commit 740803eb251c4084a49c68160e2ffef8e9aae166
5 changes: 3 additions & 2 deletions reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,9 @@ rootform
``form``
**type**: ``FormView``

Checks for sure if the current ``form`` does not have a parent form view. Using
this test is the safest way if your form contains a ``parent`` field.
Checks if the given ``form`` does not have a parent form view. This is the only
safe way of testing it because checking if the form contains a field called
``parent`` is not reliable.

Global Variables
----------------
Expand Down
0