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
test_page_test_page()
is marked as @deprecated.
Proposed resolution
Remove the usages of test_page_test_page()
.
Remove the function test_page_test_page()
.
Remove the .module file.
Remaining tasks
File another issue to remove the function itself.
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#18 | remove_usage_and-2563805-18.patch | 1.56 KB | andriyun |
#14 | remove_usage_and-2563805-14.patch | 1.56 KB | subhojit777 |
Comments
Comment #2
joshi.rohit100I found only one instance of test_page_test_page() which is in TestPageTestController. So I think, it is better if do both usage removal and function removal in one go. Also as test_page_test module only contains this function, so is it good to remove that file as well ?
Thoughts ?
Comment #3
joshi.rohit100In the mean time, here is patch for usage removal.
Comment #4
xito CreditAttribution: xito as a volunteer commentedComment #5
xito CreditAttribution: xito as a volunteer commentedHi @joshi.rohit100
I saw that you removed the call to "test_page_test_page()" function on the "TestPageTestController" file, but the function still on the .module file. I think that you should remove it from there.
Regards,
Comment #6
joshi.rohit100@naxolozano - Yes, I have only removed the usage (as per SI). To remove the function itself, IS needs update (see #2).
If it is fine to remove usage and function itself here in one go, please update SI, then we will do that here. Otherwise, I think #3 is what we have (as per current IS).
Comment #7
xito CreditAttribution: xito as a volunteer commented@joshi.rohit100 - Yes, I agree with your comment (#2, sorry, I didn't see before). I am going to rename the issue in order to cover both changes (Remove usage and function).
Comment #8
xito CreditAttribution: xito as a volunteer commentedComment #9
xito CreditAttribution: xito as a volunteer commentedComment #10
andriyun CreditAttribution: andriyun commentedComment #11
andriyun CreditAttribution: andriyun at Skilld commentedPatch with removed file
Comment #12
andriyun CreditAttribution: andriyun at Skilld commentedPatch with removed file and small fixes :)
Comment #13
l0ke1. One mention left in comment.
git grep test_page_test_page
core/modules/system/tests/modules/test_page_test/src/Controller/TestPageTestController.php: * @todo Remove test_page_test_page().
2.
Remove $attached or use it to set '#attached'.
Comment #14
subhojit777Comment #15
andriyun CreditAttribution: andriyun at Skilld commentedThanks! Looks great!
+1 to rtbc
Comment #16
l0keLooks fine for me!
+1 to RTBC
Comment #17
andypost+1, just a nitpick ;)
needs comma after ]
Comment #18
andriyun CreditAttribution: andriyun at Skilld commentedFixed patch
Comment #19
subhojit777Upload interdiffs as well.
Comment #20
alexpottLess code and this only involves tests - nice. Committed 795d9f9 and pushed to 8.0.x. Thanks!