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