Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In the method Drupal\Core\Field\FieldItemBase::getLangcode() is the variable $parent directly accessed. The method getParent() should be used. I am not sure if there is a variable $parent. All other methods is the class use the method getParent()
/**
* {@inheritdoc}
*/
public function getLangcode() {
return $this->parent->getLangcode();
}
Comment | File | Size | Author |
---|---|---|---|
#2 | 2442721-1.patch | 449 bytes | mgifford |
#1 | 2442721-1.patch | 449 bytes | daffie |
Comments
Comment #1
daffie CreditAttribution: daffie commentedComment #2
mgiffordRe-uploading last patch for the bots.
Comment #3
swentel CreditAttribution: swentel commentedMakes sense.
Comment #4
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!
Comment #7
mgiffordIt's more work, so I'm not asking that anyone remove me from this commit.
However, for the record, I took a prior patch and just uploaded it again. I had previously ensured it didn't fail when installing it on simplyTest.me, but the value in this patch was uploaded by @daffie 11 months ago.
I just nudged it along by realizing it was stuck. Fortunately @swentel RTBC'd it.