Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/vendor/magento/module-swatches/etc/
Upload File :
Current File : /home/dev2.destoffenstraat.com/vendor/magento/module-swatches/etc/di.xml

<?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>