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.
There are quite some places where you have a code like this in views:
class Foo ... {
function render(...) {
...
}
}
These ones should all get the public identifier.
Noticed as part of #2030293: View preview is broken in UI if a pager has to be displayed
Comment | File | Size | Author |
---|---|---|---|
#3 | public-2036087-3.patch | 40.36 KB | YesCT |
Comments
Comment #1
dawehner.
Comment #2
YesCT CreditAttribution: YesCT commentednote, there is also: > core/lib/Drupal/Component/Diff/DiffEngine.php:1244: function render() {
separate issue?
Comment #3
YesCT CreditAttribution: YesCT commenteddone by
there were 64 files that were effected.
Comment #4
dawehnerAwesome work!
Comment #5
alexpottCommitted 31efff2 and pushed to 8.x. Thanks!
Comment #6
mondrakeSo this is fixed
Comment #7
benjifisherDo we care that AreaPluginBase and PagerPluginBase have inconsistent declarations? The former has
and the latter has
BTW, what is the "ag" utility mentioned in #3, some "grep -r" variant?
Comment #8
dawehnerRegarding ag: Have a look at https://github.com/ggreer/the_silver_searcher
Yes it is okay to have different arguments on the render method, as they do something different.
Comment #9
benjifisherThanks for the pointer to ag.
I was wondering more about declaring just one as abstract. Both classes are declared as abstract, so why does one method get declared as abstract and not the other? I do not know PHP well enough to know whether this is a significant difference, or entirely equivalent. If the latter, then consistency would be clearer.
Comment #10.0
(not verified) CreditAttribution: commentedadded the parent issue