Skip to content

grid > source

Every grid requires a data source.

There are different types of grid data providers.

Currently supported data providers are:

  • repositoryListMethod
  • arrayProvider
  • collection
  • query

More data provider types will be added in future.

Examples:

<source>
    <arrayProvider>Hyva\AdminTest\Model\LogFileListProvider</arrayProvider>
</source>
<source>
    <repositoryListMethod>Magento\Catalog\Api\ProductRepositoryInterface::getList</repositoryListMethod>
</source>
<source>
    <collection>Magento\Catalog\Model\ResourceModel\Product\Collection</collection>
</source>
<source>
    <query>
        <select>
            <from table="sales_order"/>
        </select>
    </query>
</source>