Skip to content

Commit f1e045c

Browse files
committed
Another context fix.
1 parent f7a7ef2 commit f1e045c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/views/helpers/form.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,14 +328,14 @@ While the built-in context classes are intended to cover the basic cases you'll
328328
encounter you may need to build a new context class if you are using a different
329329
ORM. In these situations you need to implement the
330330
`Cake\\View\\Form\\ContextInterface
331-
<https://api.cakephp.org/3.x/class-Cake.View.Form.ContextInterface.html>`_ . Once
331+
<https://github.com/cakephp/cakephp/tree/master/src/View/Form/ContextInterface.php>`_ . Once
332332
you have implemented this interface you can wire your new context into the
333333
FormHelper. It is often best to do this in a ``View.beforeRender`` event
334334
listener, or in an application view class::
335335

336336
$this->Form->addContextProvider('myprovider', function ($request, $data) {
337337
if ($data['entity'] instanceof MyOrmClass) {
338-
return new MyProvider($request, $data);
338+
return new MyProvider($data);
339339
}
340340
});
341341

0 commit comments

Comments
 (0)