![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-swatches/etc/ |
<?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Catalog\Model\ResourceModel\Eav\Attribute"> <plugin name="save_swatches_option_params" type="Magento\Swatches\Model\Plugin\EavAttribute"/> </type> <type name="Magento\Catalog\Block\Product\AbstractProduct"> <plugin name="add_product_object_to_image_data_array" type="Magento\Swatches\Model\Plugin\ProductImage" /> </type> <type name="Magento\Catalog\Model\Product"> <plugin name="exclude_swatch_attribute" type="Magento\Swatches\Model\Plugin\Product" /> </type> <type name="Magento\LayeredNavigation\Block\Navigation\FilterRenderer"> <plugin name="swatches_layered_renderer" type="Magento\Swatches\Model\Plugin\FilterRenderer" sortOrder="1" /> </type> <type name="Magento\ConfigurableProduct\Model\Product\Type\Configurable"> <plugin name="add_swatch_attributes_to_configurable" type="Magento\Swatches\Model\Plugin\Configurable" /> </type> <type name="Magento\ConfigurableProduct\Observer\HideUnsupportedAttributeTypes"> <arguments> <argument name="supportedTypes" xsi:type="array"> <item name="swatch_visual" xsi:type="string">swatch_visual</item> <item name="swatch_text" xsi:type="string">swatch_text</item> </argument> </arguments> </type> <type name="Magento\Eav\Model\Attribute\FrontendType"> <arguments> <argument name="config" xsi:type="array"> <item name="select" xsi:type="array"> <item name="select" xsi:type="string">select</item> <item name="swatch_visual" xsi:type="string">swatch_visual</item> <item name="swatch_text" xsi:type="string">swatch_text</item> </item> </argument> </arguments> </type> <type name="Magento\Swatches\Model\SwatchAttributeCodes"> <arguments> <argument name="cacheKey" xsi:type="string">swatch-attribute-list</argument> <argument name="cacheTags" xsi:type="array"> <item name="0" xsi:type="const">Magento\Eav\Model\Entity\Attribute::CACHE_TAG</item> </argument> </arguments> </type> <type name="Magento\Catalog\Model\Product\Attribute\OptionManagement"> <plugin name="swatches_product_attribute_optionmanagement_plugin" type="Magento\Swatches\Plugin\Eav\Model\Entity\Attribute\OptionManagement"/> </type> <type name="Magento\Eav\Model\Config"> <arguments> <argument name="attributesForPreload" xsi:type="array"> <item name="catalog_product" xsi:type="array"> <item name="swatch_image" xsi:type="string">catalog_product</item> </item> </argument> </arguments> </type> </config>