$container->get('entity.query')->get('crop')
This creates an actual query object which can only be used once. If someone somehow tries to use the same plugin instance twice, it fail will. Inject just the entity.query service and then all get('crop') on it.
Actually, since you already inject the crop storage, you can also just do $this->cropStorage->getQuery().
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2617446-5.patch | 2.36 KB | joshi.rohit100 |
Comments
Comment #2
slashrsm commentedComment #3
joshi.rohit100Comment #4
joshi.rohit100Comment #5
joshi.rohit100Comment #6
berdirLooks good, but this is one of the projects that works with pull requests on github I think: https://github.com/drupal-media/crop
Comment #7
slashrsm commentedTrue, but patches also work. Whatever works for people works for me. :)
Thank you!