File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
app/code/Magento/PageBuilder
Controller/Adminhtml/GoogleMaps Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \PageBuilder \Block ;
9
9
10
+ /**
11
+ * @api
12
+ */
10
13
class GoogleMapsApiBlock extends \Magento \Framework \View \Element \Template
11
14
{
12
15
const GOOGLE_MAPS_API_KEY_PATH = 'cms/pagebuilder/google_maps_api_key ' ;
Original file line number Diff line number Diff line change @@ -35,11 +35,12 @@ public function __construct(
35
35
/**
36
36
* Send test request to Google Maps and return response
37
37
*
38
- * @return Json
38
+ * @return \Magento\Framework\Controller\Result\ Json
39
39
*/
40
40
public function execute ()
41
41
{
42
42
$ apiKey = $ this ->getRequest ()->getParam ('key ' );
43
- return $ this ->resultFactory ->create (ResultFactory::TYPE_JSON )->setData ($ this ->apiKeyValidator ->validate ($ apiKey ));
43
+ $ validationResult = $ this ->apiKeyValidator ->validate ($ apiKey );
44
+ return $ this ->resultFactory ->create (ResultFactory::TYPE_JSON )->setData ($ validationResult );
44
45
}
45
46
}
You can’t perform that action at this time.
0 commit comments