StoreConfigInterface
Magento\Store\Api\Data\StoreConfigInterface
What it does
This interface defines the contract for accessing store configuration data in Magento 2, including store ID, code, locale, currency, timezone, and various URL types (base, static, media) for both secure and non-secure contexts.
Developers use this interface when they need to retrieve or manipulate store-level configuration settings programmatically, typically through API calls or service contracts.
It's commonly used in multi-store setups to access store-specific settings like language, currency, and URLs.
Public Methods
- getId()
- setId()
- getCode()
- setCode()
- getWebsiteId()
- setWebsiteId()
- getLocale()
- setLocale()
- getBaseCurrencyCode()
- setBaseCurrencyCode()
- getDefaultDisplayCurrencyCode()
- setDefaultDisplayCurrencyCode()
- getTimezone()
- setTimezone()
- getWeightUnit()
- setWeightUnit()
- getBaseUrl()
- setBaseUrl()
- getBaseLinkUrl()
- setBaseLinkUrl()
- getBaseStaticUrl()
- setBaseStaticUrl()
- getBaseMediaUrl()
- setBaseMediaUrl()
- getSecureBaseUrl()
- setSecureBaseUrl()
- getSecureBaseLinkUrl()
- setSecureBaseLinkUrl()
- getSecureBaseStaticUrl()
- setSecureBaseStaticUrl()
- getSecureBaseMediaUrl()
- setSecureBaseMediaUrl()
- getExtensionAttributes()
- setExtensionAttributes()