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.
Meta issue: #2205673: [meta] Remove all @deprecated functions marked "remove before 8.0"
The drupal_is_front_page function is deprecated, so let's remove the usage of this function.
The removal of drupal_is_front_page is a seperate issue: #2388629: remove drupal_is_front_page().
Comment | File | Size | Author |
---|---|---|---|
#32 | 2388627-32.patch | 6.47 KB | JeroenT |
#32 | interdiff.txt | 1.54 KB | JeroenT |
#28 | 2388627-28.patch | 6.44 KB | JeroenT |
#20 | 2388627-20.patch | 6.33 KB | filijonka |
#17 | removed-deprecated-function-2388627-17.patch | 5.73 KB | adci_contributor |
Comments
Comment #1
filijonka CreditAttribution: filijonka commentedwell you didn't actually remove the function itself and hence the file path.inc
Comment #2
JeroenTThis issue is about removing the usages of drupal_is_front_page(). Removing the function itself is a seperate issue: #2388629: remove drupal_is_front_page().
Comment #3
filijonka CreditAttribution: filijonka commentedok great, in the future it's always good if you add any related issues in the summary.
Comment #4
filijonka CreditAttribution: filijonka commentedHave you created an issue taking care of LinkGeneratorTest?
(sorry fat fingers so accidently added the q in summary
Comment #5
dawehnerGiven how small that patch is I think we could also work on the LinkGeneratorTest bit here.
Otherwise this patch looks great, if green.
Comment #6
JeroenT@filijonka, my apologies. I added #2388629: remove drupal_is_front_page(). as a related issue.
There is no seperate issue for LinkGeneratorTest so we can do it here.
Also the patch no longer applies.
Comment #7
dawehnerAlright, so let's be honest here.
Comment #8
tadityar CreditAttribution: tadityar commentedRe-rolled the patch
Comment #9
tadityar CreditAttribution: tadityar commentedSorry didn't see the '-' sign on Needs re-roll
Comment #11
ultimateAnkit CreditAttribution: ultimateAnkit commentedSorry ,it was by mistake
Comment #12
ultimateAnkit CreditAttribution: ultimateAnkit commentedthis is my patch, please review.
Comment #13
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedPatch applied cleanly and no occurrences of call to
drupal_is_front_page()
. Good to mark as RTBC.Comment #14
filijonka CreditAttribution: filijonka commentedHi
I got some questions about this reroll, in core/modules/Language/src/Plugin/Block/LanguageBlock.php the patch made by @JeroenT added some code, this is now gone. Why?
Stated in comment 4,5 and 6 we chould also take care of the call to drupal_is_front_page in LinkGeneratorTest, this is not done.
Comment #15
rpayanmrerolled
Comment #17
adci_contributor CreditAttribution: adci_contributor commentedTrying to fix a fatal error of the patch in #15.
I guess it will help with exceptions.
Comment #19
filijonka CreditAttribution: filijonka commentedwell something has gone really wrong here in #15 so done a reroll from first patch and will also fix LinkGenerator bf uploading.
Comment #20
filijonka CreditAttribution: filijonka commentedsorry for this but it was easier for me to base this on first patch and do a reroll and removed the drupal_is_front_page in linkgeneratortest than trying to figure out what was wrong with later patches.
Comment #21
filijonka CreditAttribution: filijonka commentedComment #23
Uccio CreditAttribution: Uccio commentedThe patch remove the use of drupal_is_front_page() and drupal works well.
Comment #24
alexpottin
\Drupal\Tests\Core\Utility\LinkGeneratorTest
- this should be converted to a @todo pointing to a new issue about adding tests that active class is added on the front page.Comment #25
segi CreditAttribution: segi commentedComment #26
segi CreditAttribution: segi commentedComment #27
filijonka CreditAttribution: filijonka commentedthanks @alexpott, was unsure how to deal with that and was uncertain if it still was a valid todo.
Comment #28
JeroenTCreated re-roll + Created issue to write an extra test: #2420967: Write test to ensure that the active class is added on links when on the front page.
Comment #31
dawehnerNote: We have a
PathMatcherInterface
, so let's use it.Comment #32
JeroenT@dawehner, you're right. Thank you for your review!
New patch attached.
Comment #33
JeroenTComment #34
mihai7221 CreditAttribution: mihai7221 commentedPatch in #32 applied cleanly, also checked for
drupal_is_front_page()
and no occurrences of it.Comment #35
dawehnerGreat, I think this is done then.
Comment #37
mihai7221 CreditAttribution: mihai7221 commentedThis doesn't seem right, possible because of this #2417549: Drupal\migrate_drupal\Tests\d6\MigrateFileTest fail in MigrateTestBase
I guess the patch is ok.
Comment #39
JeroenTRTBC as said in #35.
Comment #40
alexpottCommitted 7c0e0e0 and pushed to 8.0.x. Thanks!
The beta evaluation is in the meta issue.