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.
Part of meta-issue #1856630: [Change notice] [META] Rename Views methods to core standards
Comment | File | Size | Author |
---|---|---|---|
#11 | 2003514_rename-view-method-mark_table_11.patch | 1.48 KB | somepal |
#3 | drupal-camelcase-replace-2003514.3.patch | 1.48 KB | baldwinlouie |
#2 | drupal-camelcase-replace-2003514-7451450.patch | 1.47 KB | baldwinlouie |
Comments
Comment #1
baldwinlouie CreditAttribution: baldwinlouie commentedtaking it with sillygwailo
Comment #2
baldwinlouie CreditAttribution: baldwinlouie commentedadding patch
Comment #3
baldwinlouie CreditAttribution: baldwinlouie commentedrerolling with access modifier
Comment #4
dawehnerI can't think of a reason why someone would need this as public method. Can you think of one?
Comment #5
aspilicious CreditAttribution: aspilicious commentedShould be protected :)
Comment #6
somepal CreditAttribution: somepal commentedI couldn't find the reason to make it protected as well, this method has two calls from its own class' member. I guess it should be fine to keep it private.
Comment #7
aspilicious CreditAttribution: aspilicious commentedNEVER make anything private inside views. there are 1000 use cases where you need to extend the classes defined in core. When you make function private it's a lot harder to extend these classes.
Comment #8
somepal CreditAttribution: somepal commented@aspilicious thank you, appreciate the quick response. you saved me, I was about to create patch as private.
Comment #9
baldwinlouie CreditAttribution: baldwinlouie commentedsetting to needs review so someone can take a look at the latest patch
Comment #10
aspilicious CreditAttribution: aspilicious commentedpublic ==> protected.
I looked at the latest patch. Fix that and this is ok :)
Comment #11
somepal CreditAttribution: somepal commented@aspilicious ok.so re-rolling patch in #3 as protected
Comment #12
dawehnerThank you!
Comment #13
somepal CreditAttribution: somepal commentedno problem :)
Comment #15
dawehner#11: 2003514_rename-view-method-mark_table_11.patch queued for re-testing.
Comment #16
somepal CreditAttribution: somepal commentedthank you!
Comment #17
heddnApplies cleanly and all mentions of mark_table are gone.
Comment #18
somepal CreditAttribution: somepal commentedThanks for review!
Comment #19
webchickCommitted and pushed to 8.x. Thanks!
Moving to Views for the change notice.
Comment #20
xjmWe'll create a single change notice in #1856630: [Change notice] [META] Rename Views methods to core standards.