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 )
@@ -104,12 +108,18 @@ public function setParams($params)
104108 }
105109
106110 /**
107- * setBackOffice
108- *
109- * @param array $backOffice
111+ * @param bool $backOffice
110112 */
111113 public function setBackOffice ($ backOffice )
112114 {
113- $ this ->module ->backOffice = $ backOffice ;
115+ $ this ->acknowledgeBackOfficeContext ($ backOffice );
116+ }
117+
118+ /**
119+ * @param bool $isBackOffice
120+ */
121+ public function acknowledgeBackOfficeContext ($ isBackOffice )
122+ {
123+ $ this ->backOffice = $ isBackOffice ;
114124 }
115125}
You can’t perform that action at this time.
0 commit comments