<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <!-- Más de 3 items en la sección wishlist (tab FAVORITOS del cart drawer) -->
    <preference for="Magento\Wishlist\CustomerData\Wishlist" type="Yeboyebo\Wishlist\CustomerData\Wishlist"/>

    <!-- Página de favoritos: de más reciente a más antiguo -->
    <type name="Magento\Wishlist\Block\Customer\Wishlist">
        <plugin name="Yeboyebo_Wishlist_Newest_First" type="Yeboyebo\Wishlist\Plugin\Block\CustomerWishlistNewestFirst"/>
    </type>
</config>
