Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As the core entity query QueryFactory is deprecated now, Please replace it with \Drupal\Core\Entity\EntityStorageInterface::getQuery()
Comment | File | Size | Author |
---|---|---|---|
#5 | removed_deprecated-2893540-3.patch | 5.5 KB | bapi_22 |
|
Comments
Comment #2
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedComment #3
gbyte CreditAttribution: gbyte as a volunteer and commentedThanks 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.Comment #4
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedYes 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
Comment #5
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedHi GB,
please find updated patch.
Thanks,
Comment #7
gbyte CreditAttribution: gbyte as a volunteer and commentedThanks for the patch.