Help with loading data into admin grid

Hello,

I have made an admin grid and need help loading the data ijn. I am following the Magento docs closely.

I am using this method

https://github.com/goivvy/admin-grid-tutorial/blob/master/app/code/Dev/Grid/Plugin/AddAttributesToUiDataProvider.php

Can anyone explain to me how that file works.

I want to add searching for a column called `title` in my table, at the moment I can’t load any data in- what might I add into the afterGetSearchResult method?

I basically just wanna do

‘SELECT * FROM myTable WHERE LIKE myTable.title LIKE “B%”‘ and have that load onto the grid UI.

Thanks for your help!

submitted by /u/CuriouslyGeorge17
[link] [comments]