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.
Part of #1971384: [META] Convert page callbacks to controllers
For instructions on how to convert a page callback into a controller, see the WSCCI Conversion Guide.
Comment | File | Size | Author |
---|---|---|---|
#6 | layout_test_controller-1985570-6.patch | 4.28 KB | plopesc |
#6 | interdiff.txt | 684 bytes | plopesc |
#3 | layout_test_controller-1985570-3.patch | 4.27 KB | plopesc |
#3 | interdiff.txt | 844 bytes | plopesc |
#1 | layout_test_controller-1985570-1.patch | 3.28 KB | plopesc |
Comments
Comment #1
plopescHello.
Attaching patch that converts layout_test_page() to a Controller.
Regards
Comment #2
dawehnerentityLoad could be replayed by an injected entity storage controller.
Comment #3
plopescRe-rolled patch injecting entity storage controller.
Maybe
theme_enable
hack could be replaced because uses internally some configuration system dependencies.What do you think?
Regards.
Comment #4
dawehnerHe, you interdiffs seems to be out of scope somehow.
Do we have a better description then "page callback"? This seems very D7-ish.
Comment #5
dawehnerComment #6
plopescSorry, I forgot to change the docblock.
Re-rolling patch.
Regards.
Comment #7
dawehnerThank you
Comment #8
alexpottCommitted 8e7ead4 and pushed to 8.x. Thanks!