<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <!-- Listado de productos: productos sin nombre ("Undefined array key name" en el núcleo).
         En la web antigua lo hace Yeboyebo_ScandiPWA, desactivado en Hyvä -->
    <preference for="Magento\Catalog\Ui\Component\Listing\Columns\Thumbnail"
                type="Yeboyebo\Category\Ui\Component\Listing\Columns\Thumbnail"/>
    <preference for="Magento\Catalog\Ui\Component\Listing\Columns\ProductActions"
                type="Yeboyebo\Category\Ui\Component\Listing\Columns\ProductActions"/>
    <!-- Formulario de categoría tras un guardado fallido: app_imagen/title_image llegan como array desde la sesión
         y el núcleo revienta en FileInfo::removeStorePath() -->
    <type name="Magento\Catalog\Model\Category\DataProvider">
        <plugin name="yeboyebo_category_dataprovider_image_array"
                type="Yeboyebo\Category\Plugin\Catalog\Model\Category\DataProviderImageArray"/>
    </type>
</config>
