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 per meta https://www.drupal.org/node/2205673, remove path_is_admin() as no longer used (deprecated).
usage is removed here https://www.drupal.org/node/2300809
Patch is attaced for the same.
Comment | File | Size | Author |
---|---|---|---|
#18 | remove_path_is_admin-2300817-18.patch | 3.24 KB | LinL |
#15 | remove_path_is_admin-2300817-15.patch | 3.1 KB | ianthomas_uk |
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commented#2300809: Remove all usage of path_is_admin() as it is deprecated should be merged here
Comment #2
er.pushpinderrana CreditAttribution: er.pushpinderrana commentedMerged! Please review attached patch.
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commentedPatch looks good, but i realized there is no change record for that yet
Comment #4
penyaskitoNeeds work per #3.
Comment #5
dawehnerWell, technically it is available now, it should just return FALSE
Comment #6
joshi.rohit100please review now.
Comment #7
dawehnerOh, well I meant that we should just call the method.
Comment #8
tim.plunkettLike this?
Comment #9
dawehneryeah
Comment #10
alexpottStill need a CR
Comment #11
ianthomas_ukI've expanded https://www.drupal.org/node/2224207
Comment #12
dawehnerYeah I do like this, ... made the code a bit more verbose/concrete.
Comment #14
ianthomas_ukIt's good to show where to get $route from, but as someone who hasn't had much to do with D8 routing I don't really understand the routeMatch line. Is that just getting the route for the current request? If so, why not just leave out the $route parameter? What is the equivalent of passing an arbitrary $path string?
Comment #15
ianthomas_ukreroll
Comment #16
LinL CreditAttribution: LinL commentedPatch still applies, CR is done, and there are no other occurrences of path_is_admin() with the patch applied. RTBC.
Comment #17
Wim LeersSo much nicer! :)
Comment #18
LinL CreditAttribution: LinL commentedOoh, no longer applies now that #2362227: Replace all instances of current_path() has landed. Rerolled.
Comment #19
rpayanmRBTC again.
Comment #20
webchickSearching change records for "path_is_admin" returns the change record in the results, so we look good to go there. I wasn't able to find any other instances after applying the patch. This type of change is explicitly allowed, per https://www.drupal.org/contribute/core/beta-changes.
Committed and pushed to 8.0.x. Thanks!