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.

Comments

mo_farhaz created an issue. See original summary.

mo_farhaz’s picture

Assigned: mo_farhaz » Unassigned
sergiu stici’s picture

Status: Active » Needs review
StatusFileSize
new2.36 KB

Here 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/2849874

colorfield’s picture

StatusFileSize
new2.55 KB
new768 bytes

Thank you for the patch, as we are using dependency injection for entity type manager, this is fine. Simplified the code a bit.

$storage = $this->entityTypeManager->getStorage($entityTypeId);
$query = $storage->getQuery();

  • colorfield committed 3eb4fbe on 8.x-1.x
    Issue #3120452 by colorfield, Sergiu Stici: deprecated class...
colorfield’s picture

colorfield’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.