What is the consequence of the attribute showInStore being set to 0?

During a code review of a module MyCompany_PaymentCurrencies you see a configuration field declared in the file etc/adminhtml/system.xml:

What is the consequence of the attribute showInStore being set to 0?
A . The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of ‘store’.
B . The input field will not be visible if a store view scope is selected in the system configuration
C . The input field will only be visible if a website’s default store scope is selected in the system configuration
D . The input field will be disabled if a store view scope is selected in the system configuration

Answer: B

Explanation:

Reference: https://www.mageplaza.com/magento-2-module-development/create-system-xml-configuration­magento-2.html

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments