As the core entity query QueryFactory is deprecated now, Please replace it with \Drupal\Core\Entity\EntityStorageInterface::getQuery()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bapi_22 created an issue. See original summary.

bapi_22’s picture

Assigned: bapi_22 » Unassigned
Status: Active » Needs review
FileSize
4.71 KB
gbyte’s picture

Title: Removed deprecated method/Class QueryFactory calls from code base » Remove deprecated method/Class QueryFactory calls from code base
Category: Bug report » Task
Priority: Normal » Minor

Thanks for the heads up. This is not a bug report however.

Since which core version does \Drupal\Core\Entity\EntityStorageInterface::getQuery() work? Asking to make sure not to break compatibility with recent core versions.

bapi_22’s picture

Yes GB,

It should be a task instead of bug. All deprecated methods will be removed in drupal version 9.x and it will not be an issue for current version of Drupal.

Since most of the deprecated method has already replaced with its alternate recommended method in the Drupal core, We should be get updated with our contributed module as well.

Thanks

bapi_22’s picture

Hi GB,

please find updated patch.

Thanks,

  • gbyte.co committed cb5644a on 8.x-2.x authored by bapi_22
    Issue #2893540 by bapi_22: Remove deprecated method/Class QueryFactory...
gbyte’s picture

Status: Needs review » Fixed

Thanks for the patch.

Status: Fixed » Closed (fixed)

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