File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
Theme/Model/Design/Config Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 8
8
use Magento \Framework \View \Element \Template ;
9
9
10
10
/**
11
- * Class Index
11
+ * Block for swagger index page
12
12
*
13
- * @package Magento\Swagger\Block
13
+ * @api
14
14
*/
15
15
class Index extends Template
16
16
{
Original file line number Diff line number Diff line change @@ -86,22 +86,26 @@ 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
}
99
-
100
101
/**
101
- * @param $designConfig
102
- * @return mixed
102
+ * Load template text in configured scope
103
+ *
104
+ * @param integer|string $templateId
105
+ * @param DesignConfigInterface $designConfig
106
+ * @return string
103
107
*/
104
- private function getTemplateText ($ templateId , $ designConfig )
108
+ private function getTemplateText ($ templateId , DesignConfigInterface $ designConfig )
105
109
{
106
110
// Load template object by configured template id
107
111
$ template = $ this ->templateFactory ->create ();
You can’t perform that action at this time.
0 commit comments