Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295818

Make sure within field_attach_*() that the are working with a BC entity

$
0
0

Follow-up of #1957748: hook_field_prepare_view() is passed empty field values for EntityNG Entities

Right now, only field_attach_view() and field_attach_prepare_view() functions make sure they are working with a BC entity, the others have to be called with one, so the caller needs to make sure.

It would be easier to convert and later on remove it again when the other field attach functions would ensure this, as there are dozens if not hundreds of direct calls t those functions in the field tests, that I am converting in #1822000: Clean up Drupal\field_test\Plugin\Entity\Type\TestEntity.


Viewing all articles
Browse latest Browse all 295818

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>