|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (CacheInterface $cache, ResourceConnection $resourceConnection, $cacheKey, array $cacheTags) | |
| getCodes () | |
Class SwatchAttributeCodes for getting codes of swatch attributes.
Definition at line 15 of file SwatchAttributeCodes.php.
| __construct | ( | CacheInterface | $cache, |
| ResourceConnection | $resourceConnection, | ||
| $cacheKey, | |||
| array | $cacheTags | ||
| ) |
SwatchAttributeList constructor.
| CacheInterface | $cache | |
| ResourceConnection | $resourceConnection | |
| string | $cacheKey | |
| array | $cacheTags |
Definition at line 52 of file SwatchAttributeCodes.php.
| getCodes | ( | ) |
Returns list of known swatch attribute codes. Check cache and database. Key is attribute_id, value is attribute_code
Definition at line 70 of file SwatchAttributeCodes.php.