-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move StoreView column renderer to Store module #10226
Comments
Hi @ldusan84 to me moving this into Also updating the naming could also help though I am not sure what that would mean with regards to BiC. |
You can always create a new duplicate class (with new name) and mark the older one |
Thank you for your submission. We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues. Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here). We are closing this GitHub ticket and have moved your request to the new forum. |
Hi team, Could you reopen this issue due to reason it really requires tiny fix?
My quick fix for this looks so:
So, I you can see it's converted into an array to make it work. The method
In this the method has some contradiction for the case with admin store ID.
I suggest to use
That's it. ;) |
Should I have added something?.. |
When creating a custom grid using UI components, the "Store" column can be created like this:
Where the class attribute value is the column renderer.
The
Magento\Store\Ui\Component\Listing\Column\Store
column renderer works correctly for the cases where the entity can belong to multiple store views such cms block, cms page, etc.If you want your entity to belong to only one store view you need to use
Magento\Search\Ui\Component\Listing\Column\StoreView
asMagento\Store\Ui\Component\Listing\Column\Store
doesn't work correctly in that case (shows blank for all store views).I think that
Magento\Search\Ui\Component\Listing\Column\StoreView
belongs to the Store module instead of Search module.There shouldn't be a need to have an additional dependency to Search module just to get the store view column renderer.
The naming can also be improved, maybe
Magento\Store\Ui\Component\Listing\Column\MultipleStoreView
andMagento\Store\Ui\Component\Listing\Column\SingleStoreView
Hope it makes sense.
The text was updated successfully, but these errors were encountered: