Today I created a new listing for a custom module, but unfortunately all what I got was the error message below.
1 |
Not registered handle [namespace]_[module]_team_index_data_source |
After digging around for few minutes I noticed the above handler was actually missing in the di.xml file. I simply added the following collections argument and re-compiled the code.
1 2 3 4 5 6 7 8 9 |
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"> <arguments> <argument name="collections" xsi:type="array"> ... <item name="[namespace]_[module]_team_index_data_source" xsi:type="string">[Namespace]\[Module]\Model\ResourceModel\Team\Collection</item> ... </argument> </arguments> </type> |
All good!