I would like to add module On/Off option in Configuration for custom extension.
I have used below code and add into my system.xml but when I select option No module is not off.
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
Is there any anther code I have to do in other file ?
Or is there wrong in this code ?