File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -328,14 +328,14 @@ While the built-in context classes are intended to cover the basic cases you'll
328328encounter you may need to build a new context class if you are using a different
329329ORM. 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
332332you have implemented this interface you can wire your new context into the
333333FormHelper. It is often best to do this in a ``View.beforeRender `` event
334334listener, 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
You can’t perform that action at this time.
0 commit comments