Skip to content

Commit 76132e8

Browse files
committed
minor #10330 Shorten ternary operator in Twig expression (royklutman)
This PR was merged into the 3.4 branch. Discussion ---------- Shorten ternary operator in Twig expression Commits ------- 4e8d394 Shorten Twig ternary expression
2 parents 233174e + 4e8d394 commit 76132e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/encore/server-data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ method that returns an array, you could do the following:
3535

3636
.. code-block:: twig
3737
38-
<div data-user-profile="{{ app.user ? app.user.profileData|json_encode|e('html_attr') : '' }}">
38+
<div data-user-profile="{{ app.user ? app.user.profileData|json_encode|e('html_attr') }}">
3939
<!-- ... -->
4040
</div>
4141

0 commit comments

Comments
 (0)