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.
Problem/Motivation
@timplunkett noticed most of core uses instanceof
not instanceOf
#2506151-20: Make the Twig extension link() accept Attribute objects
$ ag instanceOf --ignore-dir vendor | wc -l
34
$ ag instanceof --ignore-dir vendor | wc -l
669
Proposed resolution
Be consistent:)
Remaining tasks
User interface changes
API changes
Data model changes
Follow-up to #2506151: Make the Twig extension link() accept Attribute objects
Comment | File | Size | Author |
---|---|---|---|
#8 | 2515018-8.patch | 19.52 KB | sdstyles |
#2 | 2515018-2.patch | 18.75 KB | joshi.rohit100 |
Comments
Comment #1
joelpittetComment #2
joshi.rohit100Comment #3
joelpittetThank you @joshi.rohit100. I'm not sure how disruptive this patch will be but looks like you got all of them!
Comment #4
star-szrIt's a normal task so I think it needs one of these.
Comment #5
xjmThanks everyone!
This issue is purely coding standards improvements with no prioritized changes, so it should be postponed during the beta. However, since there is virtually no risk from this patch, I think this one is safe as an RC target. Postponing as such.
This issue also follows the preferred issue scoping for coding standards issues: it fixes all instances to conform to a certain rule, instead of trying to fix different standards within a certain component or file.
Ideally, we would also add a rule for this once #1299710: [meta] Automate the coding-standards part of patch review is possible.
Comment #6
joelpittetUn-Postponing because in RC.
Needs review to check if we missed any.
Comment #7
joelpittetThis patch failed in a few places and missing 2 new ones. With the patch leaves 7 unfixed.
Comment #8
sdstyles CreditAttribution: sdstyles at FFW commentedComment #9
joelpittetThank you @sdstyles, I checked and it looks like you got them all:)
Comment #10
alexpottCommitted 1cd13a8 and pushed to 8.0.x. Thanks!