Parameter $entityQuery of method Drupal\serial\SerialSQLStorage::__construct() has typehint with deprecated class Drupal\Core\Entity\Query\QueryFactory. Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityStorageInterface::getQuery() or \Drupal\Core\Entity\EntityStorageInterface::getAggregateQuery() instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | interdiff_3-4.txt | 768 bytes | colorfield |
| #4 | 3120452-4.patch | 2.55 KB | colorfield |
| #3 | deprecated-3120452-3.patch | 2.36 KB | sergiu stici |
Comments
Comment #2
mo_farhaz commentedComment #3
sergiu stici commentedHere is the patch, please review.
We could use entityTypeManager since Drupal 8.6+ because of this service has
->getQuery()function, based on discussion on this post: https://www.drupal.org/node/2849874Comment #4
colorfieldThank you for the patch, as we are using dependency injection for entity type manager, this is fine. Simplified the code a bit.
Comment #6
colorfieldCommitted so we can update #2977055: Use interface instead of class for SerialSQLStorage and close #3125326: Add core version requirement support for drupal 9. Feel free to re-open if necessary.
Comment #7
colorfield