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.
Remove the weird init methods. They're just a hack to provide pseudo-documentation/autocomplete, and we're replacing it with methods.
Comment | File | Size | Author |
---|---|---|---|
#22 | kill-init-2095919-22.patch | 5.32 KB | Berdir |
#17 | kill-init-2095919-17-interdiff.txt | 687 bytes | Berdir |
#17 | kill-init-2095919-17.patch | 5.28 KB | Berdir |
#12 | kill-init-2095919-12-interdiff.txt | 1.32 KB | Berdir |
#12 | kill-init-2095919-12.patch | 5.23 KB | Berdir |
Comments
Comment #1
BerdirThis will fail until the content entities in #2016679: Expand Entity Type interfaces to provide methods, protect the properties have their init calls removed. I could do it here, but that would break the existing patches.
Comment #3
BerdirTagging.
Comment #4
Berdir1: kill-init-2095919-1.patch queued for re-testing.
Comment #6
BerdirRe-roll.
Comment #8
yched CreditAttribution: yched commentedWould have happily RTBCed, but patch fails
(Testbot doesn't post fail notifications anymore ?)
Comment #9
BerdirYeah, patch will fail until Comment and Term are updated, which is happening in #2028025: Expand CommentInterface to provide methods and #2016701: Expand TermInterface to provide methods. As commented in the meta issue, we could easily remove it all here, but the other issues make sure that we have proper method replacements.
Comment #10
Berdir6: kill-init-2095919-6.patch queued for re-testing.
Comment #12
BerdirAh, I obviously need to remove the public langcode from the Entity class.
Comment #14
Berdir12: kill-init-2095919-12.patch queued for re-testing.
Comment #15
BerdirGreen!
Comment #16
fagoMinor: This should return $this as other setters.
Else, this is RTBC.
Comment #17
BerdirComment #18
aspilicious CreditAttribution: aspilicious commentedOh yes! I disliked this so much.
Comment #19
dawehnerI got confused multiple times, sorry.
Comment #20
BerdirGood point, let's be correct then :)
Comment #21
alexpottkill-init-2095919-17.patch no longer applies.
Comment #22
BerdirRe-rolled.
Comment #23
aspilicious CreditAttribution: aspilicious commentedComment #24
webchickNice clean-up!
Committed and pushed to 8.x. Thanks!