File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
app/code/Magento/Paypal/Block/Express/InContext/Minicart Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,12 @@ class Button extends Template implements ShortcutInterface
42
42
private $ config ;
43
43
44
44
/**
45
- * @inheritdoc
45
+ * Constructor
46
+ *
47
+ * @param Context $context
46
48
* @param ResolverInterface $localeResolver
47
- * @param ConfigFactory $config
49
+ * @param ConfigFactory $configFactory
50
+ * @param array $data
48
51
*/
49
52
public function __construct (
50
53
Context $ context ,
@@ -67,6 +70,14 @@ private function isInContext()
67
70
return (bool )(int ) $ this ->config ->getValue ('in_context ' );
68
71
}
69
72
73
+ /**
74
+ * @return bool
75
+ */
76
+ protected function shouldRender ()
77
+ {
78
+ return $ this ->isMiniCart && $ this ->isInContext ();
79
+ }
80
+
70
81
/**
71
82
* @inheritdoc
72
83
*/
@@ -125,12 +136,4 @@ public function setIsInCatalogProduct($isCatalog)
125
136
126
137
return $ this ;
127
138
}
128
-
129
- /**
130
- * @return bool
131
- */
132
- protected function shouldRender ()
133
- {
134
- return $ this ->isMiniCart ;
135
- }
136
139
}
You can’t perform that action at this time.
0 commit comments