I'm creating a new admin controller, for a new product property. For example, color. And each product can have a values for each color (for other reasons i didn't want to use product attributes).
I have a new admin grid for all the colors, and a link in each color to open another controller where i wanted to list all products of that color. When i click on the link, (admin/colors/manage/color/id/1/key/...) to show this last grid, and don't know the best way to filter the data i get from the table color_entity.
I know how to get the id param in execute in the Controller (which is extending \Magento\Backend\App\Action), but should it be there? I would post the code, but it's a lot of files so far.