I want to display list of country in my system.xml
<field id="country" translate="label" type="text" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Countries</label>
</field>
How we do this?
magento2magento2.2system.xml
I want to display list of country in my system.xml
<field id="country" translate="label" type="text" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Countries</label>
</field>
How we do this?
Best Answer
Use class
Magento\Directory\Model\Config\Source\Country
for country list