Closed (fixed)
Project:
Metatag
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Dec 2021 at 21:24 UTC
Updated:
21 Dec 2021 at 11:04 UTC
Jump to comment: Most recent
Comments
Comment #2
damienmckennaComment #3
damienmckennaComment #4
murilohp commentedComment #6
murilohp commentedHey, I tried to update all the places mentioning "Drupal 8", the code base is huge, so if I miss something, please let me know.
Thanks!
Comment #7
damienmckennaThat's a great step in the right direction, thank you!
One minor thing to change:
Please just change this to ".. work with all Drupal 9 releases".
Also, there's a workaround in the migration logic somewhere that checks whether the site is running on core 8.9, that bit needs to be removed too.
Comment #8
murilohp commentedThanks! I'll check this later!
Comment #9
murilohp commented@damienmckenna, I updated the code with the minor fix!
About the:
I haven't found anything about it, what I found was some codes like:
floatval(\Drupal::VERSION) <= 8.3This type of the code is being repeated on the following files:
Could you give more details about it? And regarding the tests, do you think we need to update them?
Comment #10
damienmckennaYes, any of the code that checks for (\Drupal::VERSION can be removed because it was all for Drupal 8.
Comment #11
murilohp commentedGot the idea, I updated the tests removing the unnecessary drupal 8 validation, I got a lot of warnings regarding deprecated code, I haven't changed this because I think it's not the scope of this issue, but in the future we can create a new ticket to replace:
$this->drupalPostForm()To:
$this->submitForm()The drupalPostForm will be removed in the future.
Moving to needs review, if you need anything please let me know!
Thanks!
Comment #12
damienmckennaExcellent, good work!
One minor thing - can you please remove the $this->t() bit around strings in the tests? Those are unnecessary. Thank you.
Comment #13
murilohp commentedHey, I removed the t calls from the parts that I changed, there's actually a lot of these calls inside the test classes, do you think it could be a good idea to create a new issue to work specifically with that?
Thanks!
Comment #14
damienmckennaYeah, we can do a separate issue for the additional work.
For now this is great work, thank you!
Comment #15
murilohp commentedGreat! I hope this can be merged in a while.
Thanks!
Comment #17
damienmckennaCommitted. Thank you.