StoreConfig
Magento\Store\Model\Data\StoreConfig
What it does
This data model class represents store configuration information in Magento 2, providing getters and setters for essential store properties like ID, code, locale, currency, timezone, and various URLs (base, static, media, and their secure versions).
Developers use this class when working with the Store API to retrieve or transfer store configuration data between different parts of the application, particularly in web service contexts or when implementing custom store management features.
Public Methods
- getId()
- setId()
- getCode()
- setCode()
- getWebsiteId()
- setWebsiteId()
- getLocale()
- setLocale()
- getBaseCurrencyCode()
- setBaseCurrencyCode()
- getDefaultDisplayCurrencyCode()
- setDefaultDisplayCurrencyCode()
- getWeightUnit()
- setWeightUnit()
- getBaseUrl()
- setBaseUrl()
- getBaseLinkUrl()
- setBaseLinkUrl()
- getTimezone()
- setTimezone()
- getBaseStaticUrl()
- setBaseStaticUrl()
- getBaseMediaUrl()
- setBaseMediaUrl()
- getSecureBaseUrl()
- setSecureBaseUrl()
- getSecureBaseLinkUrl()
- setSecureBaseLinkUrl()
- getSecureBaseStaticUrl()
- setSecureBaseStaticUrl()
- getSecureBaseMediaUrl()
- setSecureBaseMediaUrl()
- getExtensionAttributes()
- setExtensionAttributes()