File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/Payment/Helper Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
31
31
*/
32
32
protected $ _paymentConfig ;
33
33
34
+ /**
35
+ * @var \Magento\Framework\View\LayoutFactory
36
+ */
37
+ protected $ _layoutFactory ;
34
38
35
39
/**
36
40
* Factory for payment method models
@@ -70,6 +74,7 @@ public function __construct(
70
74
\Magento \Framework \App \Config \Initial $ initialConfig
71
75
) {
72
76
parent ::__construct ($ context );
77
+ $ this ->_layoutFactory = $ _layoutFactory ;
73
78
$ this ->_methodFactory = $ paymentMethodFactory ;
74
79
$ this ->_appEmulation = $ appEmulation ;
75
80
$ this ->_paymentConfig = $ paymentConfig ;
@@ -176,7 +181,7 @@ public function getMethodFormBlock(MethodInterface $method, LayoutInterface $lay
176
181
*/
177
182
public function getInfoBlock (InfoInterface $ info , LayoutInterface $ layout = null )
178
183
{
179
- $ layout = $ layout ?: $ layoutFactory ->create ();
184
+ $ layout = $ layout ?: $ this -> _layoutFactory ->create ();
180
185
$ blockType = $ info ->getMethodInstance ()->getInfoBlockType ();
181
186
$ block = $ layout ->createBlock ($ blockType );
182
187
$ block ->setInfo ($ info );
You can’t perform that action at this time.
0 commit comments