Skip to content

Commit

Permalink
Use objects as view controller arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Jun 2, 2020
1 parent 27a7c41 commit dfca66a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Symfony/Resources/views/fieldtype/field_view.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{{ render(controller(
"ez_content:viewAction",
{
"contentId": contentInfo.id,
"content": content,
"location": location is defined ? location : null,
"queryFieldDefinitionIdentifier": field.fieldDefIdentifier,
"viewType": ezContentQueryViews['field'],
"itemViewType": itemViewType|default(ezContentQueryViews['item']),
Expand Down

0 comments on commit dfca66a

Please sign in to comment.