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

ContentEntityBase::__clone breaks field reference to parent entity

$
0
0

Just a quick summery. If a new node translation is added via UI, callbacks on fields like preSave() reference to an "unusable" entity when they call $this->getEntity(). This only happens on the default language. There the entity is left in an "intermediate" step before turning into a new translation. This doesn't happen if you use pure API without forms in UI.


Viewing all articles
Browse latest Browse all 294883

Trending Articles



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