Skip to content

Commit b7cdf40

Browse files
committed
Reverting a bad change I made in backporting to 2.0 - see #1905
1 parent 58f1aa2 commit b7cdf40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/form/create_form_type_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ it in the view::
246246
$imageUrl = null;
247247
}
248248
// set an "image_url" variable that will be available when rendering this field
249-
$view->vars['image_url'] = $imageUrl;
249+
$view->set('image_url', $imageUrl);
250250
}
251251
}
252252

0 commit comments

Comments
 (0)