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.
Files needing conversion:
- core/modules/block/block.module
- core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockFormController.php
- core/modules/book/book.module
Comment | File | Size | Author |
---|---|---|---|
#8 | 1998708-block-request-8.patch | 2.42 KB | kim.pepper |
#4 | 1998708-block-request-4.patch | 19.25 KB | kim.pepper |
#1 | 1998708_1.patch | 2.46 KB | kmcculloch |
Comments
Comment #1
kmcculloch CreditAttribution: kmcculloch commentedInitial attempt to convert, using (what I believe are) proper Symfony methods
Comment #2
kim.pepperThis could just be $request->isMethod('GET') || $request->isMethod('HEAD')
Comment #3
kim.pepperComment #4
kim.pepperThere is now only one occurrence of PHP superglobals, so I started this again from scratch. I've used a $request-isMethodSafe() to encapsulate the same check.
Comment #6
Steven Merrill CreditAttribution: Steven Merrill commented#4: 1998708-block-request-4.patch queued for re-testing.
Comment #7
Crell CreditAttribution: Crell commentedThis should be Drupal::service('access_manager')
There's also a ton of unrelated config system stuff going on in there. Looks like a patch got mixed up by accident.
Comment #8
kim.pepperLooks like a bad rebase. Trying again...
Comment #9
Crell CreditAttribution: Crell commentedThat's more like it. :-)
Comment #10
alexpottCommitted 76518e6 and pushed to 8.x. Thanks!