<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Shop by Seo for Magento 2 (System)
 */-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Catalog\Controller\Adminhtml\Product\Attribute\Validate">
        <plugin name="Amasty_ShopbySeo::validate_product_attribute" type="Amasty\ShopbySeo\Plugin\Catalog\Controller\Adminhtml\Product\Attribute\Validate\ValidateAttributeAlias" />
    </type>

    <virtualType name="Amasty\ShopByCanonicalManagement\AddCanonicalForNoindexPromo"
                 type="Amasty\Base\Block\Adminhtml\System\Config\Form\Field\Promo\PromoField">
        <arguments>
            <argument name="moduleName" xsi:type="string">Amasty_ShopByCanonicalManagement</argument>
            <argument name="promoConfig" xsi:type="array">
                <item name="promoLink" xsi:type="string"><![CDATA[https://amasty.com/amcustomer/account/products/?utm_source=extension&utm_medium=backend&utm_campaign=subscribe_iln]]></item>
                <item name="comment" xsi:type="string"><![CDATA[The functionality is available as a part of an active product subscription or support subscription. To upgrade and obtain functionality, please follow the <a href="https://amasty.com/amcustomer/account/products/?utm_source=extension&utm_medium=backend&utm_campaign=subscribe_iln" target="_blank">link</a>. Then you can find the 'amasty/module-shop-by-canonical-management' package for installation in composer suggest.]]></item>
            </argument>
        </arguments>
    </virtualType>
</config>
