In line 617 of views.api.php:
$entity_type_id = $field->entity_type;
The entity_type property is protected. Should it use $field->getTargetEntityTypeId()?
Proposed solution:
Use getTargetEntityTypeId
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3327974-3.patch | 811 bytes | lendude |
Comments
Comment #2
cilefen commentedComment #3
lendudeI don't think $field->getEntityType() is right, that would get the config entity type for the field, right? It wants to have the entity type the field is connected to so that would need $field->getTargetEntityTypeId()
Added patch
Comment #4
lendudeComment #5
joachim commentedLGTM.
Comment #6
xjmComment #10
xjmNice find. Commited to 10.1.x, and cherry-picked to 10.0.x and 9.5.x as a patch-eligible documentation bugfix. Thanks!