This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
app/code/Magento/Theme/Model/Design/Config Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -86,21 +86,27 @@ public function validate(DesignConfigInterface $designConfig)
86
86
}
87
87
88
88
/**
89
- * @param $designConfig
90
- * @return mixed
89
+ * Returns store identifier if is store scope
90
+ *
91
+ * @param DesignConfigInterface $designConfig
92
+ * @return string|bool
91
93
*/
92
- private function getScopeId ($ designConfig )
94
+ private function getScopeId (DesignConfigInterface $ designConfig )
93
95
{
94
96
if ($ designConfig ->getScope () == 'stores ' ) {
95
97
return $ designConfig ->getScopeId ();
96
98
}
97
99
return false ;
98
100
}
101
+
99
102
/**
100
- * @param $designConfig
101
- * @return mixed
103
+ * Load template text in configured scope
104
+ *
105
+ * @param integer|string $templateId
106
+ * @param DesignConfigInterface $designConfig
107
+ * @return string
102
108
*/
103
- private function getTemplateText ($ templateId , $ designConfig )
109
+ private function getTemplateText ($ templateId , DesignConfigInterface $ designConfig )
104
110
{
105
111
// Load template object by configured template id
106
112
$ template = $ this ->templateFactory ->create ();
You can’t perform that action at this time.
0 commit comments