Model
Variable
Magento\Variable\Model\ResourceModel\Variable
What it does
This resource model manages database operations for custom variables in Magento 2.
Developers use it to load, save, and retrieve variable data by code, including handling store-specific values that fall back to default values when not set for a specific store.
It supports both plain text and HTML variable values across different store views.
Public Methods
- loadByCode()
- getVariableByCode()