Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
bootstrap system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Dec 2014 at 23:02 UTC
Updated:
27 Feb 2015 at 17:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
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 commentedok great, in the future it's always good if you add any related issues in the summary.
Comment #4
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 commentedRe-rolled the patch
Comment #9
tadityar commentedSorry didn't see the '-' sign on Needs re-roll
Comment #11
ultimateAnkit commentedSorry ,it was by mistake
Comment #12
ultimateAnkit commentedthis is my patch, please review.
Comment #13
sivaji_ganesh_jojodae commentedPatch applied cleanly and no occurrences of call to
drupal_is_front_page(). Good to mark as RTBC.Comment #14
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 commentedTrying to fix a fatal error of the patch in #15.
I guess it will help with exceptions.
Comment #19
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 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 commentedComment #23
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 commentedComment #26
segi commentedComment #27
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 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 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.