File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ class HookDisplayHeader implements HookInterface
3131 private $ module ;
3232 private $ context ;
3333 private $ params ;
34+
35+ /**
36+ * @var bool
37+ */
3438 private $ backOffice ;
3539
3640 public function __construct (Ps_Googleanalytics $ module , Context $ context )
@@ -100,12 +104,18 @@ public function setParams($params)
100104 }
101105
102106 /**
103- * setBackOffice
104- *
105- * @param array $backOffice
107+ * @param bool $backOffice
106108 */
107109 public function setBackOffice ($ backOffice )
108110 {
109- $ this ->module ->backOffice = $ backOffice ;
111+ $ this ->acknowledgeBackOfficeContext ($ backOffice );
112+ }
113+
114+ /**
115+ * @param bool $isBackOffice
116+ */
117+ public function acknowledgeBackOfficeContext ($ isBackOffice )
118+ {
119+ $ this ->backOffice = $ isBackOffice ;
110120 }
111121}
You can’t perform that action at this time.
0 commit comments