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.
The class EntityViewsData implements the interface EntityViewsDataInterface. That means that subclasses of EntityViewsData already implement the interface EntityViewsDataInterface. The subclasses should not implement the interface EntityViewsDataInterface themselves.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2420037-1.patch | 1.84 KB | daffie |
Comments
Comment #1
daffie CreditAttribution: daffie commentedComment #4
daffie CreditAttribution: daffie commentedComment #5
dawehnerGood catches.
Comment #7
Mile23+1.
I kind of wish it made sense to need the interface declaration if the subclass overrides an implementation from the superclass, just so it would break spectacularly if the superclass changes its implementation or interface. But I think this works.
Comment #9
Mile23Back to RTBC.
Comment #10
alexpottThis issue is a minor bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 99466a0 and pushed to 8.0.x. Thanks!