Skip to content

Commit b66d5ba

Browse files
committedAug 30, 2019
no message
1 parent 8c274d9 commit b66d5ba

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed
 

‎Settings.php

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
namespace Inkifi\Map;
3+
/**
4+
* 2019-08-30
5+
* @used-by \Inkifi\Pwinty\AvailableForDownload::_p()
6+
* @method static Settings s()
7+
*/
8+
final class Settings extends \Df\Config\Settings {
9+
/**
10+
* 2019-08-30
11+
* @return string
12+
*/
13+
function keyGoogle() {return $this->p();}
14+
15+
/**
16+
* 2019-08-30
17+
* @return string
18+
*/
19+
function keyMapBox() {return $this->p();}
20+
21+
/**
22+
* 2019-08-30
23+
* @return string
24+
*/
25+
function keyOpenCage() {return $this->p();}
26+
27+
/**
28+
* 2019-08-30
29+
* @override
30+
* @see \Df\Config\Settings::prefix()
31+
* @used-by \Df\Config\Settings::v()
32+
* @return string
33+
*/
34+
protected function prefix() {return 'api/map';}
35+
}

‎etc/adminhtml/system.xml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version='1.0'?>
2+
<config
3+
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
4+
xsi:noNamespaceSchemaLocation='urn:magento:module:Df_Config:etc/system_file.xsd'
5+
>
6+
<system>
7+
<section id='api'>
8+
<group
9+
id='map'
10+
showInDefault='1' showInStore='1' showInWebsite='1'
11+
sortOrder='30'
12+
type='text'
13+
>
14+
<label>Mappy Place</label>
15+
<field
16+
id='keyGoogle'
17+
showInDefault='1' showInStore='1' showInWebsite='1'
18+
sortOrder='1'
19+
translate='label'
20+
type='obscure'
21+
>
22+
<label>Google API Key</label>
23+
<comment><![CDATA[]]></comment>
24+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
25+
<validate>required-entry</validate>
26+
</field>
27+
<field
28+
id='keyMapBox'
29+
showInDefault='1' showInStore='1' showInWebsite='1'
30+
sortOrder='2'
31+
translate='label'
32+
type='obscure'
33+
>
34+
<label>Mapbox Access Token</label>
35+
<comment><![CDATA[]]></comment>
36+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
37+
<validate>required-entry</validate>
38+
</field>
39+
<field
40+
id='keyOpenCage'
41+
showInDefault='1' showInStore='1' showInWebsite='1'
42+
sortOrder='3'
43+
translate='label'
44+
type='obscure'
45+
>
46+
<label>OpenCage API Key</label>
47+
<comment><![CDATA[]]></comment>
48+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
49+
<validate>required-entry</validate>
50+
</field>
51+
</group>
52+
</section>
53+
</system>
54+
</config>

0 commit comments

Comments
 (0)
Please sign in to comment.