<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <!-- Datos del listado del admin (ui_component/trazabilidad_pedidos_listado.xml): la tabla tal cual -->
    <virtualType name="Yeboyebo\TrazabilidadPedidos\Model\ResourceModel\Listado\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
        <arguments>
            <argument name="mainTable" xsi:type="string">yeboyebo_trazabilidad_pedidos</argument>
            <argument name="resourceModel" xsi:type="null"/>
            <argument name="identifierName" xsi:type="string">id</argument>
        </arguments>
    </virtualType>
    <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
        <arguments>
            <argument name="collections" xsi:type="array">
                <item name="trazabilidad_pedidos_listado_data_source" xsi:type="string">Yeboyebo\TrazabilidadPedidos\Model\ResourceModel\Listado\Collection</item>
            </argument>
        </arguments>
    </type>
</config>
