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.
Problem/Motivation
We are getting this error for the instances of pager_get_query_parameters
usage:
Call to deprecated function pager_get_query_parameters().
Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.
Use
\Drupal\Core\Pager\RequestPagerInterface->getQueryParameters
() instead.
However, Drupal\Core\Pager\RequestPagerInterface
is not an interface available in core. It's been renamed as Drupal\Core\Pager\PagerParametersInterface
see https://www.drupal.org/node/2779457 for more details.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3153565-2.patch | 3.98 KB | vijaycs85 |
Comments
Comment #2
vijaycs85Initial patch
Comment #3
kim.pepperGood catch!
Comment #5
catchCommitted b499870 and pushed to 8.9.x. Thanks!
Comment #6
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedPatch is failed to apply on 9.1.x because of
and both files are not exists in 9.1.x branch.
Comment #7
catchOops I tagged it before realising why that was wrong as explained in #6, but forgot to untag when I did the commit etc., thanks for untagging :)