Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
SwatchAttributesProvider Class Reference

Public Member Functions

 __construct (Configurable $typeConfigurable, SwatchAttributeCodes $swatchAttributeCodes, SwatchAttributeType $swatchTypeChecker=null)
 

Detailed Description

Provide list of swatch attributes for product.

Definition at line 17 of file SwatchAttributesProvider.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Configurable  $typeConfigurable,
SwatchAttributeCodes  $swatchAttributeCodes,
SwatchAttributeType  $swatchTypeChecker = null 
)
Parameters
Configurable$typeConfigurable
SwatchAttributeCodes$swatchAttributeCodes
SwatchAttributeType | null$swatchTypeChecker

Definition at line 45 of file SwatchAttributesProvider.php.

49  {
50  $this->typeConfigurable = $typeConfigurable;
51  $this->swatchAttributeCodes = $swatchAttributeCodes;
52  $this->swatchTypeChecker = $swatchTypeChecker
53  ?: ObjectManager::getInstance()->create(SwatchAttributeType::class);
54  }

The documentation for this class was generated from the following file: